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

    powerful-morning-89

    08/20/2022, 8:28 PM
    Hmm, it looks like egui () is threadsafe? Given that it warns for deadlocks in a few places...
  • b

    bright-gpu-74537

    08/20/2022, 8:30 PM
    ¯\_(ツ)_/¯
  • b

    bulky-exabyte-6537

    08/20/2022, 11:54 PM
    an immediate mode gui would be so much easier to make threadsafe
  • b

    bulky-exabyte-6537

    08/21/2022, 12:01 AM
    looks cool though
  • t

    thousands-state-46635

    08/21/2022, 4:48 AM
    Ah okay
  • f

    future-iron-61487

    08/22/2022, 12:49 AM
    gotta get that haxeui-swing
  • f

    future-iron-61487

    08/22/2022, 12:50 AM
    I wonder if python is possible with wxpython and haxeui-wxwidgets
  • b

    bright-gpu-74537

    08/22/2022, 7:10 AM
    wouldnt haxeui-javafx be better / nicer?
  • b

    bright-gpu-74537

    08/22/2022, 7:12 AM
    I doubt it would work with haxeui-hxwidgets... that backend specifically uses the hxcpp externs hxwidgets... that said, i wonder how feasible it is for hxwidgets (the externs not the backend) to use either hxcpp OR python (it would be nice for it to support hl too, but its alot of work - when i get some time it would be really interesting to see if "ammer" could make hxwidgets much more haxe target universal)
  • f

    future-iron-61487

    08/22/2022, 8:40 AM
    I mean, my only experience with java ui is
    javax.swing
  • f

    future-iron-61487

    08/22/2022, 8:41 AM
    also ya gotta get that "java metal" look
  • k

    kind-river-61378

    08/23/2022, 7:24 AM
    hmmm im having trouble adding UI stuff to a FlxSubState
  • k

    kind-river-61378

    08/23/2022, 7:26 AM
    the UI stuff works when opened up in a normal FlxState, but FlxSubStates don't seem to be working for me?
  • k

    kind-river-61378

    08/23/2022, 7:28 AM
    after doing some digging, could it be related to this thing from years ago? i tried opening my substate with
    persistentUpdate = false
    and it seemed to work
  • b

    bright-gpu-74537

    08/23/2022, 8:06 AM
    any chance of a minimal repro?
  • k

    kind-river-61378

    08/23/2022, 8:15 AM
    im brand new to all this HaxeUI stuff so im starting out with just pure code instead of loading in from xml
  • k

    kind-river-61378

    08/23/2022, 8:15 AM
    so I suppose just making a vbox, and adding a simple button to it
  • k

    kind-river-61378

    08/23/2022, 8:18 AM
    in my "fix", i set
    persistentUpdate = false
    , and then at the end of new/create() within the substate, I set persistentUpdate of the parent state (PlayState in my case) to be true, and that sorta fixed it I guess lol?
  • b

    bright-gpu-74537

    08/23/2022, 9:00 AM
    is there anyway you can share your project? Or a recreation of it, its usually easier, as there are (generally) a few ways to do things in haxeui, and rather than me try to guess its easier to just see the code (and either xml or code shouldnt matter)
  • k

    kind-river-61378

    08/23/2022, 9:01 AM
    ill get back to u later today, i been up all night and got it to state where it just about works enough for me lolol
  • k

    kind-river-61378

    08/23/2022, 9:02 AM
    ill have to make sample project thingie, my current project is big and fussy and secret repo heheh
  • b

    bright-gpu-74537

    08/23/2022, 9:02 AM
    heh heh, fair enough... i would be interested in a minimal repro though... be nice to understand whats going on... ill try and recreate it myself anyway, see if there is something weird going on for me.
  • b

    bright-gpu-74537

    08/23/2022, 1:17 PM
    So ive used substates and it seems without issue:
  • b

    bright-gpu-74537

    08/23/2022, 1:17 PM
    ive used xml, but it shouldnt make a difference, the xml just changes into haxe code
  • b

    bright-gpu-74537

    08/23/2022, 1:18 PM
    (ive also used the flixel-ui theme because... ... well, i like it 🙂 )
  • f

    full-branch-26766

    08/23/2022, 8:13 PM
    is it possible to get the bounds (or with) of one section of a splitter? (not the default one but the current one)
  • r

    refined-cat-44047

    08/23/2022, 11:11 PM
    I have a
    listview
    , and each item in the list has a button. How do I get an onClick callback for each button, and know which item (maybe item index?) the event came from? Here is a quick example XML:
    Copy code
    xml
    <listview width="200" height="200">
        <item-renderer width="100%" layoutName="horizontal">
            <label id="text" width="100%" verticalAlign="center" />
            <button id="action" />
        </item-renderer>
        <data>
            <item text="Item 1" action="Action 1" />
            <item text="Item 2" action="Action 2" />
            <item text="Item 3" action="Action 3" />
        </data>
    </listview>
  • r

    refined-cat-44047

    08/24/2022, 2:48 AM
    I found this post that answers everything. Cheers! 😉 https://community.haxeui.org/t/get-access-to-button-in-particular-list-item-in-listview/204
  • b

    bright-gpu-74537

    08/24/2022, 5:48 AM
    cant you just get the width of that container?
  • b

    bright-gpu-74537

    08/24/2022, 5:52 AM
    eg: http://haxeui.org/builder/?vjhzfk
1...122012211222...1687Latest