mod_gui without children
Posted: Thu Feb 06, 2025 11:53 pm
My mod uses mod_gui and I place button elements in the top gui - button_flow
There are cases where I would like to have the ability to toggle the display of my mods buttons and I have that worked out
...Except, when I turn my mod's display (mod.destroy()) I am left with essentially, a top gui artifact. The empty frames are being drawn and I can't figure out the proper way to either remove or make not visible, let alone a good/better way to detect the empty inner_frame than a bunch of if statements walking the top gui structure to determine that the top gui is indeed empty.
Before:
After:
More detail:
There are cases where I would like to have the ability to toggle the display of my mods buttons and I have that worked out
...Except, when I turn my mod's display (mod.destroy()) I am left with essentially, a top gui artifact. The empty frames are being drawn and I can't figure out the proper way to either remove or make not visible, let alone a good/better way to detect the empty inner_frame than a bunch of if statements walking the top gui structure to determine that the top gui is indeed empty.
Before:
After:
More detail: