-
Notifications
You must be signed in to change notification settings - Fork 0
Button
Button:new()
Button:new(String text, String icon)
Boolean isEnabled()
Gets whether the button is enabled. Default is true.
void setEnabled(Boolean isEnabled)
Sets whether the button is enabled.
String getIcon()
Gets the icon for the button. Default is "".
void setIcon(String icon)
Sets the icon for the button. Options are: "ModIcons_<ModID>_<Filename>", where Filename can include subfolders.
Number getIconStyle()
Gets the icon style for the button. Default is BIS_Icon.
void setIconStyle(Number iconStyle)
Sets the icon style for the button. Options are: BIS_Icon, and BIS_IconState.
String getTag()
Gets the tag for the button. Default is "".
void setTag(String tag)
Sets the tag for the button.
String getText()
Gets the text for the button. Default is Loc_Empty().
void setText(String text)
Sets the text for the button.
String getCallback()
Gets the callback for the button. Default is "".
void setCallback(Function func)
Sets the callback for the button.
See Control