(Formerly part of GetGameParameter, which is now obsolete)
readonly static int Game.GUICount
Returns the number of GUIs in the game.
This is useful for script modules if you need to iterate through all the GUIs for some reason.
Valid GUIs are numbered from 0 to GUICount minus 1.
Example:
Display("The game has %d GUIs.", Game.GUICount);
|