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

    refined-cat-44047

    07/26/2022, 4:47 AM
    I assume there is a
    lime setup hl
    command or something to that effect
  • g

    great-oyster-61535

    07/26/2022, 4:47 AM
    Yep
  • r

    refined-cat-44047

    07/26/2022, 4:48 AM
    Hmm, I am getting > FATAL ERROR : Failed to load library ssl.hdll
  • r

    refined-cat-44047

    07/26/2022, 4:48 AM
  • g

    great-oyster-61535

    07/26/2022, 4:49 AM
    https://discord.com/channels/162395145352904705/162395145352904705/976196953333436446
  • g

    great-oyster-61535

    07/26/2022, 4:49 AM
    Maybe this is related?
  • p

    powerful-morning-89

    07/26/2022, 4:49 AM
    There's a
    -D haxeui_no_network
    (or something like that) flag that should help with that.
  • r

    refined-cat-44047

    07/26/2022, 5:03 AM
    I have been trying the suggestions in the linked discord discussion with no luck yet. I will try that flag. Thanks for your help
  • r

    refined-cat-44047

    07/26/2022, 5:38 AM
    Well, I got it to run. Jumped through quite a few hoops, then installed lime 8 dev. Based on this post https://community.openfl.org/t/hashlink-target-build-problems/11447/9 But the layout is not correct. My test is missing, and I am getting this warning: > haxe/ui/themes/ThemeManager.hx:145: WARNING: could not find haxeui-flixel/styles/default/main.css
  • b

    bright-gpu-74537

    07/26/2022, 5:40 AM
    sounds like you havent initialsed the toolkit, or included the libs correctly, that warning indicates something isnt being included right
  • b

    bright-gpu-74537

    07/26/2022, 5:40 AM
    have you got a test project i can try and run this end?
  • r

    refined-cat-44047

    07/26/2022, 5:45 AM
    yeah, I am struggling a bit. Been away from Haxe for too long I think 😦 Do you mind if I DM you the zip
  • b

    bright-gpu-74537

    07/26/2022, 5:45 AM
    nope - i dont mind
  • r

    refined-cat-44047

    07/26/2022, 9:33 AM
    For anyone reading along, I updated my haxeui-core and haxeui-flixel to use the latest git versions, and it all came to life šŸ™‚
  • r

    refined-cat-44047

    07/27/2022, 7:11 AM
    What is the correct way to display an image in an XML layout with HaxeUI? In the haxe-ui/component-examples repo, I found this https://github.com/haxeui/component-examples/blob/master/images/assets/main.xml But when I just take that first image declaration and use it in my app, it doesn't work. Am I missing something?
    Copy code
    <hbox>
        <image width="200" height="200" resource="http://i.imgur.com/Qz2EVXR.png" />
    </hbox>
    I am also not able to get local images to show from my "assets" directory. I thought it was a pathing issue, which is why I tried the web URL above. But neither work.
  • r

    refined-cat-44047

    07/27/2022, 7:12 AM
    This does work however
    <image resource="haxeui-core/styles/default/haxeui.png" />
  • b

    bright-gpu-74537

    07/27/2022, 7:23 AM
    looks fine... how are you loading the xml?
  • b

    bright-gpu-74537

    07/27/2022, 7:25 AM
    http://haxeui.org/builder/?cwfvwy
  • b

    bright-gpu-74537

    07/27/2022, 7:31 AM
    So i just tried that code in haxeui-flixel and i get an insta crash - so something is up there, for sure
  • b

    bright-gpu-74537

    07/27/2022, 7:40 AM
    ok
    <image width="200" height="200" resource="haxeui-core/styles/default/haxeui.png" />
    works fine... something wrong with loading from http (on haxeui-flixel only)
  • b

    bright-gpu-74537

    07/27/2022, 7:46 AM
    Copy code
    on bytes - length: 0
    šŸ¤”
  • b

    bright-gpu-74537

    07/27/2022, 7:49 AM
    same on other hxcpp backends actually, so my guess is that that the first response is a 301 (moved)
  • b

    bright-gpu-74537

    07/27/2022, 7:51 AM
    haxe/ui/util/ImageLoader.hx:147: http status: 301
    ... yep
  • b

    bright-gpu-74537

    07/27/2022, 8:03 AM
    ok, haxeuis ImageLoader will now follow redirects (301, 302)... as for your issue about loading from assets, im guessing haxeui doesnt know about your assets?
  • r

    refined-cat-44047

    07/27/2022, 8:28 AM
    Oh interesting! Well that is a good update šŸ™‚ Yeah, I just noticed an IO Error > haxe/ui/backend/AssetsImpl.hx:67: [IOErrorEvent type="ioError" bubbles=true cancelable=false text="Unknown error" errorID=0] So definitely seems like it doesn't know about my PNG. Actually it should be the same example as the zip I sent you yesterday if you still have it. Does that look like how I should be loading assets?
  • r

    refined-cat-44047

    07/27/2022, 8:29 AM
    I did come across this
    module.xml
    thing, and was wondering if I was suppose to include my asset paths in there as resources, for HaxeUI to use
  • b

    bright-gpu-74537

    07/27/2022, 8:42 AM
    yeah, i mean, haxeui tries to use framework assets if i can, the "problem" with flixel assets is they are named all weird... im just digging around flixel now to see how they work...
    module.xml
    is defo the "universal" way to do things - but it means you are including your assets twice, once via flixel and again via a haxeui module... thought, i guess you could stop flixel from including them
  • r

    refined-cat-44047

    07/27/2022, 8:51 AM
    Hmm, yeah I was worried it might include things twice
  • b

    bright-gpu-74537

    07/27/2022, 8:53 AM
    well, you could always stop flixel from including them, but i think thats rubbish as you might (and probably would) want to use them in haxeui and flixel (there shouldnt be any separation) - im sure there is a solution, just trying to find how how (and where) flixel stores its assets... im guessing in haxe resources (like haxeui does) - if thats the case then its just a naming issue
  • r

    refined-cat-44047

    07/27/2022, 8:54 AM
    yeah, ok well that is definitely a good place to focus on. I will keep trying. Cheers!
1...118711881189...1687Latest