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

    bright-gpu-74537

    01/31/2023, 2:26 PM
    interesting... can you try something:
  • c

    clever-yak-82528

    01/31/2023, 2:26 PM
    oh, wait, i need to pull latest hxwidgets
  • c

    clever-yak-82528

    01/31/2023, 2:26 PM
    forgot to do that before building
  • b

    bright-gpu-74537

    01/31/2023, 2:26 PM
    still dont feel like it will fix it, if it doesnt try this:
  • b

    bright-gpu-74537

    01/31/2023, 2:28 PM
    comment out this line: https://github.com/haxeui/haxeui-hxwidgets/blob/master/haxe/ui/backend/hxwidgets/builders/TreeViewBuilder.hx#L27
  • b

    billowy-waiter-28954

    01/31/2023, 2:29 PM
    If I understand correctly, Imho that's a slippery slope. Composition seems like a much future proof option than inheritance because it doesn't add constraints on one lib because of another's API choices. They stay independant and free from the other, and you can still compose them together as you want
  • b

    bright-gpu-74537

    01/31/2023, 2:29 PM
    though i agree in general, whats nice about using in inheritance is that you can use Components as ceramic visuals, ie, just "add" them
  • b

    bright-gpu-74537

    01/31/2023, 2:30 PM
    same goes with openfl... its eventually extends Sprite, so you can just use it like it was a sprite (same for flixel, heaps, etc)
  • b

    bright-gpu-74537

    01/31/2023, 2:30 PM
    its not a huge deal, but it does make the UI feel a little "external" to the rest of the framework
  • b

    billowy-waiter-28954

    01/31/2023, 2:31 PM
    My suggestion regarding Ceramic + HaxeUI would be to plug haxe ui via a Ceramic Component
  • b

    billowy-waiter-28954

    01/31/2023, 2:32 PM
    like this:
    Copy code
    haxe
    var visual = new Visual();
    var ui = new CeramicHaxeUI(); // <-- entry point of haxe ui
    visual.component('ui', ui);
    add(visual);
  • b

    billowy-waiter-28954

    01/31/2023, 2:33 PM
    (of course I guess you'd need more parameters to CeramicHaxeUI, but I don't know haxeui well so you know better than me)
  • b

    billowy-waiter-28954

    01/31/2023, 2:33 PM
    (docs about the Ceramic Component API: https://ceramic-engine.com/guides/components/)
  • b

    bright-gpu-74537

    01/31/2023, 2:33 PM
    if that makes the most sense to ceramic then sounds important, out of curiosity, what are the benefits using it as a plugin as opposed to, say, just a haxelib?
  • b

    billowy-waiter-28954

    01/31/2023, 2:34 PM
    Plugins have the possibility to change/extend the config of the ceramic app, like adding a haxelib dependency, providing additional assets...
  • b

    billowy-waiter-28954

    01/31/2023, 2:34 PM
    (so haxe-ui lib could be automatically included if you enable haxeui plugin anyway)
  • b

    billowy-waiter-28954

    01/31/2023, 2:35 PM
    But if there is no need to change ceramic project config, just using haxe-ui should be enough
  • b

    bright-gpu-74537

    01/31/2023, 2:35 PM
    gotcha... sounds like something for !billy to investigate 🙂
  • c

    clever-yak-82528

    01/31/2023, 2:36 PM
    commenting out the line fixed it
  • b

    bright-gpu-74537

    01/31/2023, 2:36 PM
    im trying to stay as "hands off" with all these backends... primarily because i dont really have time, and secondarily because its interesting to see progress without intervention... (and secretly thirdly, im hoping people are keeping notes so we can brainstorm a backend guide... ... ... shhhh... 🤫 )
  • b

    bright-gpu-74537

    01/31/2023, 2:37 PM
    cool - ill add a fix - thanks
  • c

    clever-yak-82528

    01/31/2023, 2:37 PM
    👍
  • b

    bright-gpu-74537

    01/31/2023, 2:40 PM
    alright, fixed in latest haxeui-hxwidgets
  • c

    clever-yak-82528

    01/31/2023, 2:41 PM
    noice
  • a

    ambitious-knife-25690

    01/31/2023, 2:43 PM
    i think there's more but i'm not sure how to check all the conflicts
  • a

    ambitious-knife-25690

    01/31/2023, 2:43 PM
    i only get one at a time :/
  • a

    ambitious-knife-25690

    01/31/2023, 2:43 PM
    I remember destroy being another one
  • b

    bright-gpu-74537

    01/31/2023, 2:43 PM
    inherit from Visual and watch it explode!
  • b

    bright-gpu-74537

    01/31/2023, 2:44 PM
    oh
  • a

    ambitious-knife-25690

    01/31/2023, 2:44 PM
    typedef ComponentSurface = Mesh;
    just gives me
    id
    conflict
1...145214531454...1687Latest