I am developing a script which will contain tens of small GUIs. And i will be adding more over time.
However, when i am done with going through the different GUIs, i want to return to my main menu.
The issue i'm having is, is being able to hide all the GUIs at once, and show the main menu again.
At this moment i have a line for every GUI, to hide. But i would have to maintain that by adding the new GUIs, and it takes up a lot of space.
So, is it possible to hide all GUIs in one line? Almost like a
Code: Select all
GUI *:hide
If the above isn't clear, here's an example code i have going
Code: Select all
M9:
Gui M9:Show, x3635 y850 w200 h200, M9
Return
M8:
Gui M8:Show, x3635 y850 w200 h200, M8
Return
M7:
Gui M7:Show, x3635 y850 w200 h200, M7
Return
M6:
Gui M6:Show, x3635 y850 w200 h200, M6
Return
M5:
Gui M5:Show, x3635 y850 w200 h200, M5
Return
CloseMGUI:
;
;here goes the close all gui codes
;
Return