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

    bright-waitress-77067

    05/10/2023, 9:27 PM
    Hi @bright-gpu-74537, I am trying to use Haxe-ui with HxGodot. Is it possible to do so? I saw your simple test some time back on the HxGodot channel. I am using Haxe 4.3.1 and Hxcpp 4.3.2 but I am getting the following errors.
    Copy code
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:39: characters 4-53 : Array<haxe.StackItem> should be haxe.CallStack
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:42: characters 4-48 : Array<haxe.StackItem> should be haxe.CallStack
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:57: characters 27-44 : Class<haxe.CallStack> has no field exceptionToString
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:82: characters 20-27 : haxe.CallStack has no field asArray
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:4: lines 4-89 : Field stack has different type than in core type
    /usr/local/lib/haxe/std/eval/_std/haxe/Exception.hx:4: lines 4-89 : haxe.CallStack should be haxe.CallStack
    /usr/local/lib/haxelib/hxgodot/git/src/godot/variant/Variant.hx:94: characters 1-8 : Build failure
  • b

    bright-gpu-74537

    05/10/2023, 9:29 PM
    it packages them as haxe.Bytes and then turns them into something the backend understands (for html5 thats a data url)
  • b

    bright-gpu-74537

    05/10/2023, 9:30 PM
    which toolkit? HaxeUI?
  • h

    happy-agent-4114

    05/10/2023, 9:30 PM
    I'm writing a node addon for haxeui
  • b

    bright-gpu-74537

    05/10/2023, 9:30 PM
    that wasnt me im afraid, that was someone else, i dont have any clue about hxGodot (or godot for that matter)...
  • b

    bright-gpu-74537

    05/10/2023, 9:31 PM
    gotcha
  • h

    happy-agent-4114

    05/10/2023, 9:31 PM
    I'm just seeing it do raw http requests
  • b

    bright-waitress-77067

    05/10/2023, 9:32 PM
    Ah, my memory failed me there. I will go and take a look again. Awesome work with Haxe-ui btw.
  • b

    bright-gpu-74537

    05/10/2023, 9:32 PM
    they arent http requests (unless you are actually using http resources in the image), but modules are packed as bytes, and then unpacked as data urls... so there is no http (even if chrome is saying it is)
  • h

    happy-agent-4114

    05/10/2023, 9:33 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1105970830632046692/image.png▾

  • h

    happy-agent-4114

    05/10/2023, 9:33 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1105970891348783195/image.png▾

  • h

    happy-agent-4114

    05/10/2023, 9:33 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1105970914530693160/image.png▾

  • h

    happy-agent-4114

    05/10/2023, 9:33 PM
    oh never mind I have brain damage
  • b

    bright-gpu-74537

    05/10/2023, 9:34 PM
    took me a few seconds too... 🙂
  • b

    bright-gpu-74537

    05/10/2023, 9:34 PM
    i was like "whats the issue"... then i saw it 😄
  • h

    happy-agent-4114

    05/10/2023, 9:34 PM
    never mind it still breaks after I fix it

    https://cdn.discordapp.com/attachments/565569107701923852/1105971244517568552/image.png▾

  • b

    bright-gpu-74537

    05/10/2023, 9:35 PM
    maybe without the first / in the /haxe/ui/nodes in th module.xml?
  • b

    bright-gpu-74537

    05/10/2023, 9:35 PM
    ... i can assure you this all works 🙂
  • h

    happy-agent-4114

    05/10/2023, 9:36 PM
    trying that
  • h

    happy-agent-4114

    05/10/2023, 9:36 PM
    still errors...
  • b

    bright-gpu-74537

    05/10/2023, 9:37 PM
    what path are you using in your tag?
  • h

    happy-agent-4114

    05/10/2023, 9:37 PM
    they're programatically assigned, does that make a difference
  • b

    bright-gpu-74537

    05/10/2023, 9:37 PM
    nope... whats is one of the paths?
  • h

    happy-agent-4114

    05/10/2023, 9:38 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1105972037761110107/image.png▾

  • b

    bright-gpu-74537

    05/10/2023, 9:38 PM
    try without the slash?
  • h

    happy-agent-4114

    05/10/2023, 9:38 PM
    and I changed the resource path to /assets
  • b

    bright-gpu-74537

    05/10/2023, 9:39 PM
    not sure about that, i would remove the first / from the /haxe/ui/nodes, leave assets as assets and remove the / from the /assets when you assign them
  • b

    bright-gpu-74537

    05/10/2023, 9:40 PM
    you also shouldnt ever need to call autosize fyi... unless that is your call?
  • h

    happy-agent-4114

    05/10/2023, 9:40 PM
    I have no idea why I call autosize, it just seemed like I should lmao
  • b

    bright-gpu-74537

    05/10/2023, 9:41 PM
    not even sure why that is public if it is the haxeui one
1...166316641665...1687Latest