MNGuiInputButton class ​
No description available
Functions ​
mnscript
MNGuiInputButton.DockBottom() - Docks the element to the bottom.
mnscript
MNGuiInputButton.DockFill() - Docks the element to fill.
mnscript
MNGuiInputButton.DockLeft() - Docks the element to the left.
mnscript
MNGuiInputButton.DockRight() - Docks the element to the right.
mnscript
MNGuiInputButton.DockTop() - Docks the element to the top.
- Gets the button data.
mnscript
bool MNGuiInputButton.GetEnabled() - Returns whether the UI element is enabled.
- Gets the button tag.
- Returns whether the UI element is valid.
mnscript
MNGuiInputButton.Remove() - Removes the UI element.
mnscript
MNGuiInputButton.SetBackgroundColor(Color) - Sets the UI element background color.
- Sets the button data. This is to get some data in Surface_InputButtonPressed event.
mnscript
MNGuiInputButton.SetDockMargin(number, number, number, number) - Sets the UI element dock margin.
mnscript
MNGuiInputButton.SetEnabled(bool) - Sets whether the UI element is enabled.
- Sets the label font.
mnscript
MNGuiInputButton.SetFontSize(number) - Sets the button font size (10-100).
- Sets the height of the UI element.
mnscript
MNGuiInputButton.SetHoverColor(Color) - Sets the button background hover color.
- Sets the position of the UI element.
mnscript
MNGuiInputButton.SetRounded(number) - Sets the roundedness.
mnscript
MNGuiInputButton.SetScalePos(number, number) - Sets the position of the UI element using a percentage (0-1).
mnscript
MNGuiInputButton.SetScaleSize(number, number) - Sets the size of the UI element using a percentage (0-1).
- Sets the width and height of the UI element.
- Sets the button tag. This is to know which button was pressed in Surface_InputButtonPressed event.
- Sets the label text.
mnscript
MNGuiInputButton.SetTextColor(Color) - Sets the label text color.
- Sets the text which appears on the input box when clicked.
- Sets the width of the UI element.
mnscript
MNGuiInputButton.TextAlignCenter() - Aligns the text center.
mnscript
MNGuiInputButton.TextAlignLeft() - Aligns the text left.
mnscript
MNGuiInputButton.TextAlignRight() - Aligns the text right.
