readonly int GUI.ID
Gets the GUI's ID number. This is the GUI's number from the editor, and is useful
if you need to interoperate with legacy code that uses the GUI's number rather than
object name.
Example:
SetGUIClickable(gIconbar.ID, 1);
gIconbar.Clickable = false;
uses the obsolete SetGUIClickable function to make the ICONBAR GUI clickable,
and then uses the equivalent modern property to stop it being clickable.
See Also: GUIControl.ID
|