(Formerly known as SetGUIObjectSize, which is now obsolete)
GUIControl.SetSize(int width, int height)
Adjusts the specified GUI control to have the new size WIDTH x HEIGHT.
This allows you to dynamically resize GUI controls on the screen while the
game is running, and this may well be useful in conjunction with GUI.SetSize and
GUIControl.SetPosition if you want to create dynamically resizable GUIs.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
invMain.SetSize(160, 100);
will resize the invMain control to have a size of 160 x 100.
See Also: GUIControl.Height,
GUIControl.SetPosition,
GUI.SetSize,
GUIControl.Width,
|