There are many simultanous effects, and they will keep changing. Aka the effect "Major Cold Resistance" might be active with a remaining duration, or not active. If it is not active, then i don't want it to show.
I was hoping i could use the VBox for this.
Indeed, i can successfully add my Gauges to the VBox, and update them when needed.
My challenge comes when i want to remove a no longer active effect.
- I dont know how to actually remove it.
- I have tested with Geyser:remove(gaugeobj) but this doesnt seem to have any effect on the visuals
- I have utilized gaugeobj:hide() with partial success, then the gauge hides, but leaves a "hole" in the VBox
- I have tried to VBoxContainerObj:organize() to force redraw (after hidden or removed) with no success. I also tried to resize the gauge to 0x0, and organize, but then it resizes back
- The closest i have gotten is to remove everything in the VBox, then remove the VBox itself, then recreate the entire thing whenever i need to remove one effect. this is too slow though.
- Is this even the correct use of the VBox (dynamic updates)? Or is it primarily designed to layout during creation phase?
- I have been trying to remove the objects from a VBox, if that is wrong, is there other ways that will have the Vbox disregard e.g. a hidden child? (im thinking something like moving the object i would have prefered destroyed to another container, hide it, then "organize" on the vbox?
- alternatively, maybe there is a completely different way to handle this. Any suggestions? (at this point im thinking maybe a user window, and no vbox at all...)
Thanks and regards