Hi guys,
I know it is lack of respect to show up years later with a question but...
How do I tell AGS to shut down (turn off) all Guis in one go?
I currently have to do a lot of manual work turning them off.
Thanks in advance
Something like:
short x = 0;
while (x<Game.GUICount) {
gui[x].Visible = false;
x++;
}
(Or you can DisableInterface(); if you just want to disable interaction with GUIs)
pcj,
thanks for the quick answer,
I forgot how good this site is, it's still the best place around the net,
thanks again, will try it now.
Miguel
According to CJ (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=21214.msg259479#msg259479)*, operations on short (16-bit) variables are actually slower on 32-bit systems than operations on ints (32-bit). He said that shorts should therefore only be used instead of ints when memory consumption is an issue (large arrays or structs primarily). That may be an AGS-specific issue, and you probably wouldn't notice the difference, but it's just better in this case to use an int. ;)
*And yes, I totally n00b'd that one! :=
Huh. Good to know.