int GUIControl.Y;
Gets/sets the Y position of the GUI control. This specifies its top 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.Y = 20;
will move the btnConfirm button to be positioned 20 pixels from the top of its GUI.
See Also: GUIControl.SetPosition,
GUIControl.X
|