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

    elegant-twilight-61392

    01/27/2023, 7:48 AM
    i should be able to basically do what haxeui-openfl does with its TextArea or whatever its called but with a Godot
    Label
    instead
  • b

    bright-gpu-74537

    01/27/2023, 7:49 AM
    cool 🙂 text can be a pain... sometimes not, sometimes yes, it depends on the backend really
  • e

    elegant-twilight-61392

    01/27/2023, 7:52 AM
    if cliprects are just not allowing overdraw then i think theres a really easy way to implement that although i can actually deal with that later lol
  • b

    bright-gpu-74537

    01/27/2023, 7:53 AM
    yeah, defo deal with it later, but its more if the backend clipping mechanism fits in with haxeuis, haxeui gives you a rect to clip on the current component
  • b

    bright-gpu-74537

    01/27/2023, 7:58 AM
    something like that
  • b

    bright-gpu-74537

    01/27/2023, 7:58 AM
    blue being the component, red being the cliprect
  • b

    bright-gpu-74537

    01/27/2023, 8:27 AM
    seems fine here... you got a repro?
  • b

    bright-gpu-74537

    01/27/2023, 8:27 AM
    Copy code
    haxe
            clearSelected.onClick = function(_) {
                var s = tv1.selectedNode;
                if (s == null) {
                    return;
                }
                trace(s.text);
                s.clearNodes();
            }
  • c

    clever-yak-82528

    01/27/2023, 12:04 PM
    ohhhh
  • c

    clever-yak-82528

    01/27/2023, 12:05 PM
    i was trying to get rid of all the nodes, including the root node
  • b

    bright-gpu-74537

    01/27/2023, 12:05 PM
    ah... isnt there a way to do that also?
  • c

    clever-yak-82528

    01/27/2023, 12:06 PM
    i tried doing
    tv1.clearNodes();
  • b

    bright-gpu-74537

    01/27/2023, 12:06 PM
    ok, ill try that in a bit
  • c

    clever-yak-82528

    01/27/2023, 12:06 PM
    which throws an exception because i think it tries to cast tv1 to a node
  • b

    bright-gpu-74537

    01/27/2023, 12:07 PM
    right... seems like something isnt linked up correctly in the backend - ill check it out
  • b

    bright-gpu-74537

    01/27/2023, 12:28 PM
    work in progress "validators"
  • b

    bright-gpu-74537

    01/27/2023, 12:32 PM
    works with native which is quite nifty
  • b

    bright-gpu-74537

    01/27/2023, 12:33 PM
    i mean, its not complex, but still nice to know 🙂
  • c

    clever-yak-82528

    01/27/2023, 2:06 PM
    hmm
  • c

    clever-yak-82528

    01/27/2023, 2:07 PM
    what do i need to bind to to get an event when a treeview node is selected?
  • b

    bright-gpu-74537

    01/27/2023, 2:07 PM
    UIEvent.CHANGE
  • c

    clever-yak-82528

    01/27/2023, 2:07 PM
    awesome, thanks
  • c

    clever-yak-82528

    01/27/2023, 2:08 PM
    my cursed fusion of haxe and rust is slowly coming together into quite a nice project
  • c

    clever-yak-82528

    01/27/2023, 2:08 PM
    it even builds on windows
  • c

    clever-yak-82528

    01/27/2023, 2:12 PM
    interesting
  • c

    clever-yak-82528

    01/27/2023, 2:13 PM
    seems like adding userData to a treeview node causes a segfault
  • c

    clever-yak-82528

    01/27/2023, 2:20 PM
    how do i actually get the selected node? there doesn't appear to be an attribute on the event or on the treeview for the selected node
  • b

    bright-gpu-74537

    01/27/2023, 2:22 PM
    ☝️
  • b

    bright-gpu-74537

    01/27/2023, 2:22 PM
    myTreeView.selectedNode
  • c

    clever-yak-82528

    01/27/2023, 2:22 PM
    ...oh my god ive been trying to get the selected node of entirely the wrong component
1...142914301431...1687Latest