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

    kind-policeman-40412

    07/30/2020, 4:37 AM
    I mean there's nothing related to haxe ui except the invalid call ))
  • k

    kind-policeman-40412

    07/30/2020, 4:38 AM
    😩
  • f

    fast-rain-20339

    07/30/2020, 4:40 AM
    You've probably said this before, but what target? Can you build for a different target?
  • f

    fast-rain-20339

    07/30/2020, 4:40 AM
    oh neko
  • k

    kind-policeman-40412

    07/30/2020, 4:40 AM
    yeah
  • f

    fast-rain-20339

    07/30/2020, 4:40 AM
    Yeah try JS or native, if you can. Often the errors are different and sometimes more useful.
  • k

    kind-policeman-40412

    07/30/2020, 4:40 AM
    I can build for linux hxcpp but it still trows
  • k

    kind-policeman-40412

    07/30/2020, 4:41 AM
    throws )
  • f

    fast-rain-20339

    07/30/2020, 4:41 AM
    Different error?
  • k

    kind-policeman-40412

    07/30/2020, 4:41 AM
    same šŸ™‚
  • f

    fast-rain-20339

    07/30/2020, 4:41 AM
    Unforunate :/
  • f

    fast-rain-20339

    07/30/2020, 4:41 AM
    JS?
  • k

    kind-policeman-40412

    07/30/2020, 4:43 AM
    oh not the same actually. I've just mixed things a bit as I tried a lot in process. Now the linux target works and even registerEvent works and callback is successfully fired. But I've seen that already. Wait a sec I will try to access ui.joinButton and ui.joinButton.onClick.
  • f

    fast-rain-20339

    07/30/2020, 4:43 AM
    šŸ‘
  • k

    kind-policeman-40412

    07/30/2020, 4:44 AM
    Copy code
    āžœ  client git:(haxeui) āœ— lime run linux
    source/vortex/shooter/Game.hx:82: resize: [932x1021]
    source/vortex/shooter/states/TitleState.hx:38: new()
    source/vortex/shooter/states/TitleState.hx:100: onActivate()
    source/vortex/shooter/states/TitleState.hx:110: onDestroy()
    source/vortex/shooter/states/LobbyHaxeUIState.hx:49: new()
    source/vortex/shooter/states/LobbyHaxeUIState.hx:135: onActivate()
    source/vortex/shooter/states/LobbyHaxeUIState.hx:69: onReady -> ui:,[object Box]
    source/vortex/shooter/states/LobbyHaxeUIState.hx:70: onReady -> event:,UIEvent
  • f

    fast-rain-20339

    07/30/2020, 4:44 AM
    šŸ‘ Looks as expected.
  • k

    kind-policeman-40412

    07/30/2020, 4:44 AM
    yeah. but I'm confused even more because why it does not work for Neko then )))
  • f

    fast-rain-20339

    07/30/2020, 4:45 AM
    Me too, though macro magic is involved, so might be something to do with how it's built? Not sure, I'll say it again, Ian'll know more 😁
  • f

    fast-rain-20339

    07/30/2020, 4:45 AM
    I would recommend using classes with the build macro thing, they've worked really well for me and my code feels organised.
  • f

    fast-rain-20339

    07/30/2020, 4:46 AM
    They're also very easy to use šŸ™‚
  • k

    kind-policeman-40412

    07/30/2020, 4:48 AM
    Ohh, I wanted to try HaxeUI exactly because of xml support. I already have my UI written with OpenFL except there's a lot of boilerplate code for layout, resizing, etc
  • f

    fast-rain-20339

    07/30/2020, 4:49 AM
    Ah, maybe you misunderstand - I still use XML šŸ˜„
  • k

    kind-policeman-40412

    07/30/2020, 4:49 AM
    oh yes, but you told you have a separate class for every xml component?
  • f

    fast-rain-20339

    07/30/2020, 4:50 AM
    The xml is applied via a macro to the classes
  • f

    fast-rain-20339

    07/30/2020, 4:50 AM
    Yeah.
  • k

    kind-policeman-40412

    07/30/2020, 4:53 AM
    That pretty much ruins all the fun for me as I already have States and StateStack. So I have separate State for every screen. All the context and initialization and logic for given State is contained within that State class. The best way would be just pass my State context into the Component and access that context properties and their methods.
  • f

    fast-rain-20339

    07/30/2020, 4:54 AM
    hm
  • k

    kind-policeman-40412

    07/30/2020, 4:54 AM
    But I'll think about your solution as well ))
  • k

    kind-policeman-40412

    07/30/2020, 4:54 AM
    Maybe it's still good to go.
  • f

    fast-rain-20339

    07/30/2020, 4:54 AM
    I'm not quite sure I understand, but at the very least, your way doing things should at least work. See what Ian says šŸ™‚
1...324325326...1687Latest