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

    happy-agent-4114

    05/18/2023, 6:06 PM
    this should be working the way it does in my head right

    https://cdn.discordapp.com/attachments/565569107701923852/1108817828687118477/image.png▾

  • h

    happy-agent-4114

    05/18/2023, 6:08 PM
    it stays the same scale no matter what I set it to

    https://cdn.discordapp.com/attachments/565569107701923852/1108818412517466193/image.png▾

    https://cdn.discordapp.com/attachments/565569107701923852/1108818412819468419/image.png▾

  • f

    full-journalist-82607

    05/18/2023, 6:21 PM
    you must invalidate the component : this.invalidateComponent() ( or this.invalidateComponentStyle() )
  • h

    happy-agent-4114

    05/18/2023, 6:22 PM
    oh I kinda thought that was internal to the setter
  • h

    happy-agent-4114

    05/18/2023, 6:24 PM
    had to change it a bit but this works

    https://cdn.discordapp.com/attachments/565569107701923852/1108822481415974954/image.png▾

  • h

    happy-agent-4114

    05/18/2023, 6:24 PM
    512x512 is the background tile size
  • f

    full-journalist-82607

    05/18/2023, 6:27 PM
    oh backgroundWithPercent didn't work ? or do you like backgroundWidth better ?
  • h

    happy-agent-4114

    05/18/2023, 6:47 PM
    widthpercent didn't work
  • h

    happy-agent-4114

    05/18/2023, 6:48 PM
    it's gonna be fun implementing recursive shrinking for nodes
  • h

    happy-agent-4114

    05/18/2023, 6:48 PM
  • f

    full-journalist-82607

    05/18/2023, 6:52 PM
    hmm. are you sure http://haxeui.org/builder/?2f5cf9c5 here it works ( it changes when you click on it) , look at the code of onClick :onClick="box.customStyle.backgroundWidthPercent=75; box.invalidateComponentStyle();"
  • h

    happy-agent-4114

    05/18/2023, 8:17 PM
    does UIEvent.COMPONENT_ADDED have a way to determine which component was added to it
  • h

    happy-agent-4114

    05/18/2023, 8:23 PM
    target just returns the item throwing the event
  • b

    bright-gpu-74537

    05/18/2023, 8:32 PM
    dont think there is a currently, i guess a "relatedComponent" could be useful
  • h

    happy-agent-4114

    05/18/2023, 8:34 PM
    yeah, I'm basically trying to filter out elements that are added to specifically ones that are my custom class
  • b

    bright-gpu-74537

    05/18/2023, 8:35 PM
    ill add it tommorrow, i think it could also be useful for ItemEvent.COMPONENT_EVENT
  • b

    bright-gpu-74537

    05/18/2023, 8:36 PM
    actually, there is already a "source" for ItemEvent... so thats probably fine then
  • h

    happy-agent-4114

    05/18/2023, 8:36 PM
    yeah I remember that from working with dropdowns
  • h

    happy-agent-4114

    05/19/2023, 3:34 PM
    I was going to write this in a pr but it took me about 10 minutes to realize I have no idea where to start
  • h

    happy-agent-4114

    05/19/2023, 3:35 PM
    if I just add a
    relatedComponent
    field to the constructor I would have to change every backend to support it
  • h

    happy-agent-4114

    05/19/2023, 3:35 PM
    how do you work with this it's like trying to get the dressing off a salad
  • b

    bright-gpu-74537

    05/19/2023, 3:53 PM
    i forgot about it tbh, ill sort it out real quick, shouldnt take long, maybe the commit will shed some light 🙂
  • b

    bright-gpu-74537

    05/19/2023, 3:56 PM
    https://github.com/haxeui/haxeui-core/commit/78370f15abd13afe646b6e33ff09d917dfb76774
  • h

    happy-agent-4114

    05/19/2023, 3:57 PM
    I will look at it for at least 5 minutes 🙇‍♂️
  • h

    happy-agent-4114

    05/19/2023, 3:57 PM
    oh I was massively overcomplicating that
  • b

    bright-gpu-74537

    05/19/2023, 3:58 PM
    heh heh, i mean, i assumed it would be pretty simple... got all the info... just need to pass it as part of the event
  • h

    happy-agent-4114

    05/19/2023, 4:00 PM
    I don't know why I suddenly forgot that public means it can be set from other classes
  • b

    bright-gpu-74537

    05/19/2023, 4:00 PM
    > how do you work with this it's like trying to get the dressing off a salad so not quite accurate then? 😄
  • b

    bright-gpu-74537

    05/20/2023, 1:43 PM
    im working on a new set of components that will, eventually, deprecate things like "dropdown" (all types) as well as things like "ColorSelectorPopup"... thinking of a good name for them... so far i have "PopupPanel"... the idea being you will be able to put anything into a "popup panel" and customize the trigger and renderers, etc... does that name seem sensible... so, instead of "dropdown" you would have "list-popup" (or "popup-list" ?)... same for things like "menu-popup", "option-stepper-popup", etc
  • b

    bright-gpu-74537

    05/20/2023, 1:43 PM
    ... my "concern" is that the "option-stepper-popup" kinda indicates that the option-stepper will be in the "popup", where as really its the "renderer" (and the trigger)
1...167716781679...1687Latest