Skip to content

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.
mnscript
string MNGuiInputButton.GetData() 
  • Gets the button data.
mnscript
bool MNGuiInputButton.GetEnabled() 
  • Returns whether the UI element is enabled.
mnscript
string MNGuiInputButton.GetTag() 
  • Gets the button tag.
mnscript
bool MNGuiInputButton.IsValid() 
  • Returns whether the UI element is valid.
mnscript
MNGuiInputButton.Remove() 
  • Removes the UI element.
mnscript
MNGuiInputButton.SetBackgroundColor(Color) 
  • Sets the UI element background color.
mnscript
MNGuiInputButton.SetData(string) 
  • 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.
mnscript
MNGuiInputButton.SetFont(string) 
  • Sets the label font.
mnscript
MNGuiInputButton.SetFontSize(number) 
  • Sets the button font size (10-100).
mnscript
MNGuiInputButton.SetHeight(number) 
  • Sets the height of the UI element.
mnscript
MNGuiInputButton.SetHoverColor(Color) 
  • Sets the button background hover color.
mnscript
MNGuiInputButton.SetPos(number, number) 
  • 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).
mnscript
MNGuiInputButton.SetSize(number, number) 
  • Sets the width and height of the UI element.
mnscript
MNGuiInputButton.SetTag(string) 
  • Sets the button tag. This is to know which button was pressed in Surface_InputButtonPressed event.
mnscript
MNGuiInputButton.SetText(string) 
  • Sets the label text.
mnscript
MNGuiInputButton.SetTextColor(Color) 
  • Sets the label text color.
mnscript
MNGuiInputButton.SetTitle(string) 
  • Sets the text which appears on the input box when clicked.
mnscript
MNGuiInputButton.SetWidth(number) 
  • 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.