int GUIControl.X;
Gets/sets the X position of the GUI control. This specifies its left edge, and is
relative to the GUI which contains the control.
This allows you to dynamically move GUI controls around on their parent GUI while the
game is running.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
btnConfirm.X = 10;
will move the btnConfirm button to be positioned 10 pixels from the left of its GUI.
See Also: GUIControl.SetPosition,
GUIControl.Y
|