I'm wondering if there's an easy way of iterating through GUIs and setting them all to be not visible (otherwise I can theoretically have save and load dialogues be enabled at the same time, for example).
Hi
do you mean something like this? The folllowing is something i have:
gSymbols.Visible = false;
gNotes.Visible = false;
gClose.Visible = false;
gRun.Visible = false;
gWalk.Visible = false;
gInv.Visible = false;
gsave.Visible = false;
gGui4.Visible = true;
gload.Visible = true;
gIconbar2.Visible = false;
barefoot
i think there is a Gui array somewhere.
something like Game.Guis[]
EDIT: No wait its a global array.
so you can just do
int i = 0;
while (i < Game.GuiCount){
gui[i].Visibile = false
}
Ah, case sensitivity strikes again (was using GUI instead, doh). Cheers, Calin!
Just to be completely clear, GUI (all caps) refers to the type whereas gui (all lower-case) refers to the global array of instances of the GUI type.