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

    billowy-waiter-28954

    02/01/2023, 3:25 PM
    basically the area that is visible after clipping is the area where the clipQuad would be drawn if it was not set visible=false
  • a

    ambitious-knife-25690

    02/01/2023, 3:27 PM
    this.x = -value.left; this.y = -value.top; this.clipQuad.x = left; this.clipQuad.y = top;
  • a

    ambitious-knife-25690

    02/01/2023, 3:27 PM
    i move both
  • a

    ambitious-knife-25690

    02/01/2023, 9:14 PM
    this is weird
  • a

    ambitious-knife-25690

    02/01/2023, 9:16 PM
    it always catches the hover effect, it never has issues with the click ability of the button
  • a

    ambitious-knife-25690

    02/01/2023, 9:16 PM
    but mouseover is intermittently called
  • r

    refined-greece-48002

    02/02/2023, 4:43 AM
    I'm missing a concept here: In the custom tree view example, how are you meant to hook up an event handler to, for example, the switch in the item renderer? (one that knows what node it is in etc)
  • b

    bright-gpu-74537

    02/02/2023, 8:19 AM
    switch in the item renderer?
  • b

    bright-gpu-74537

    02/02/2023, 8:38 AM
    ah, i think i understand what you mean: http://haxeui.org/builder/?252c13e0
  • b

    bright-gpu-74537

    02/02/2023, 8:39 AM
    short answer is:
    Copy code
    haxe
            tv2.registerEvent(ItemEvent.COMPONENT_EVENT, function(event:ItemEvent) {
                trace(event.source.id, event.source.value, event.sourceEvent.type);
            });
  • b

    bright-gpu-74537

    02/02/2023, 8:39 AM
    interestingly though, that didnt work for the switch, which i dont quite get... will check it out... but it should have worked with any InteractiveComponent...
  • b

    bright-gpu-74537

    02/02/2023, 10:37 AM
    ... ... i love it when a plan comes together
  • b

    bright-gpu-74537

    02/02/2023, 10:38 AM
    basically zero effort validation 🥳
  • r

    refined-greece-48002

    02/02/2023, 11:55 AM
    Aah... it seems things in expandable aren't working in general? if I put a button in there it also does nothing
  • b

    bright-gpu-74537

    02/02/2023, 11:56 AM
    oh yeah? That seems weird, i mean, its all just item renderers in the end... ill check it out when i get a moment
  • b

    bright-gpu-74537

    02/02/2023, 11:58 AM
    you are right though... put a checkbox in the expandable item renderer and it doesnt dispatch the event - and that 100% works in the non-expandable item renderers... strange... 🤔 Likely to be something dumb (repro: http://haxeui.org/builder/?fb2072fd)
  • r

    refined-greece-48002

    02/02/2023, 12:00 PM
    http://haxeui.org/builder/?bce037e3 yep I was about to send you this similar repro :D
  • b

    bright-gpu-74537

    02/02/2023, 12:01 PM
    almost certainly something really small / dumb - there isnt anything special going on here... or at least there shouldnt be
  • b

    bright-gpu-74537

    02/02/2023, 12:14 PM
    alright, this is working now... as expected it was tiny: when the new item renderer was created, it didnt copy over the "itemIndex" from the old one, which is needed in order to dispatch component events 🙂
  • r

    refined-greece-48002

    02/02/2023, 12:23 PM
    Amazing!
  • r

    refined-greece-48002

    02/02/2023, 12:23 PM
    Very much appreciate the fast fix :)
  • b

    bright-gpu-74537

    02/02/2023, 12:24 PM
    np - it was literally a two line fix: https://github.com/haxeui/haxeui-core/commit/5fb374c0ce150638c99721c85f3fc3e052b69abd
  • b

    bright-gpu-74537

    02/02/2023, 12:24 PM
    i thought it would be something dumb / simple - nice catch 🙂
  • r

    refined-greece-48002

    02/02/2023, 12:37 PM
    oh wow the TreeNode's
    data
    is available from every component in the item renderer's event
  • r

    refined-greece-48002

    02/02/2023, 12:37 PM
    that is super handy and should probably be emblazoned somewhere
  • b

    bright-gpu-74537

    02/02/2023, 12:38 PM
    yeah, it passes the item renderer data when sending the event
  • b

    bright-gpu-74537

    02/02/2023, 11:03 PM
    (wip - super simple atm, like 70 LoC)
  • a

    ambitious-knife-25690

    02/03/2023, 1:32 AM
    @bright-gpu-74537 Bug with button bar
  • a

    ambitious-knife-25690

    02/03/2023, 1:33 AM
    selectedindex/selectedbutton never gets set
  • r

    refined-greece-48002

    02/03/2023, 4:25 AM
    In the validation examples, what is it that ties the validators to a form? Eg, how do you tell the submit button which validated fields are relevant to it?
1...145814591460...1687Latest