I was busy with a few other things in the meantime and just got to this again now.
So i tried setting the panel's alpha to 0, sadly for some things this does not work due to some i guess optimizations things you did because when the alpha is set to 0 for an object actually some sizing etc code seems to not get executed.
So when i have for example a popup panel and it has text and other elements resizing dynamically and the panel bg and other elements adapting to that and i would set the panel's alpha to 0 and set the text (so the layout, panel bg etc should resize), then it only does that resizing/reflowing of the layout once i set the alpha of the panel to higher again, not while its set to 0.
So setting it to 0 then is useless (despite it is what would be good to do to have it be shown once its properly layouted).
Is there some way to disable your "don't do if alpha ==0" or similar optimisations for that use case then?