(Formerly known as SetGUIPosition, which is now obsolete)
GUI.SetPosition(int x, int y)
Moves the top-left corner of GUI to the new location (X,Y) on the screen.
This allows you to dynamically move GUIs around on the screen while the
game is running. The co-ordinates are screen co-ordinates, not room
co-ordinates, and use the same scale as in the editor.
Example:
gVerbcoin.SetPosition(mouse.x, mouse.y);
will move the VERBCOIN GUI to the position where the cursor is.
See Also: GUI.Centre, GUI.BackgroundGraphic,
GUIControl.SetPosition, GUI.SetSize,
GUI.X, GUI.Y
|