https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    09/08/2022, 6:21 AM
    with a module.xml
  • b

    bright-gpu-74537

    09/08/2022, 6:21 AM
    something like:
  • b

    bright-gpu-74537

    09/08/2022, 6:21 AM
    Copy code
    xml
    <module>
        <resources>
            <resource path="assets/images" prefix="images" />
        </resources>
    </module>
  • b

    bright-gpu-74537

    09/08/2022, 6:22 AM
    put that in a module.xml on your classpath and haxeui will embed everything in there into your app
  • b

    bright-gpu-74537

    09/08/2022, 6:22 AM
    so
    assets/images/icon.png
    can be referred to at run time as
    images/icon.png
  • h

    happy-agent-4114

    09/08/2022, 6:23 AM
    trying that now
  • h

    happy-agent-4114

    09/08/2022, 6:24 AM
    still not working but I might have written the module wrong
  • h

    happy-agent-4114

    09/08/2022, 6:24 AM
    where's the reference for that?
  • b

    bright-gpu-74537

    09/08/2022, 6:24 AM
    https://github.com/haxeui/haxeui-guides/blob/master/modules.md
  • b

    bright-gpu-74537

    09/08/2022, 6:24 AM
    but not sure how up to date that is now... :/
  • b

    bright-gpu-74537

    09/08/2022, 6:25 AM
    resources part hasnt changed much though
  • b

    bright-gpu-74537

    09/08/2022, 6:25 AM
    what is in your module.xml? And where did you put the file?
  • b

    bright-gpu-74537

    09/08/2022, 6:26 AM
    not project root, it needs to be on your classpath (haxeui macros scan the classpath looking for modules)
  • b

    bright-gpu-74537

    09/08/2022, 6:26 AM
    looks fine
  • b

    bright-gpu-74537

    09/08/2022, 6:26 AM
    can you send over the app?
  • h

    happy-agent-4114

    09/08/2022, 6:27 AM
    loading assets/icon.png doesn't resolve
  • h

    happy-agent-4114

    09/08/2022, 6:30 AM
    I didn't include my too many git scripts in the archive bc I don't think that's going to cause an issue
  • b

    bright-gpu-74537

    09/08/2022, 6:30 AM
    change the .ico to .png
  • h

    happy-agent-4114

    09/08/2022, 6:31 AM
    I'm so confused
  • h

    happy-agent-4114

    09/08/2022, 6:33 AM
    maybe it's a win11 bug??
  • b

    bright-gpu-74537

    09/08/2022, 6:33 AM
    maybe, you have pulled latest haxeui-core, haxeui-hxwidgets and hxWidgets, right?
  • b

    bright-gpu-74537

    09/08/2022, 6:33 AM
    but actually, its not showing up in the app either
  • b

    bright-gpu-74537

    09/08/2022, 6:33 AM
    so something is off in your app i think, not win 11
  • h

    happy-agent-4114

    09/08/2022, 6:34 AM
    running
    haxelib update
  • b

    bright-gpu-74537

    09/08/2022, 6:34 AM
    but are you using git versions in the first place?
  • h

    happy-agent-4114

    09/08/2022, 6:35 AM
    yeah I'm using haxelib git so running update pulls
  • b

    bright-gpu-74537

    09/08/2022, 6:35 AM
    and anyway, the fact that the Image isnt showing indicated there is some deeper problem
  • h

    happy-agent-4114

    09/08/2022, 6:35 AM
    if I installed wxwidgets wrong it wouldn't even build, right?
  • b

    bright-gpu-74537

    09/08/2022, 6:36 AM
    ie, ignore the icon for now, once you get
    <image resource="assets/icon.png" width="200" height="200" />
    working i think everything else will be fine
  • b

    bright-gpu-74537

    09/08/2022, 6:36 AM
    probably not...
1...125012511252...1687Latest