-
Notifications
You must be signed in to change notification settings - Fork 10
Documentation
* = Optional, pass either nothing or -1 for default values
- createInterface()
Returns a new interface
- show()
Displays the interface
- isVisible()
Returns if the interface is being displayed
- createWindow(*width, *height, *title)
Returns a new window
- setClosable(closable)
Shows / Hides the close button
- setOnClose(function)
Executes this function once window is closed
- isClosed()
Returns whether the window is closed
- createContainer()
Creates a new container inside the window to align items horizontally
- createSubWindow(*width, *height, *title)
Returns a new window which makes this window inaccessible until it's closed
- addItemText(*text)
Returns a new text item
- addItemButton(*width, *height, *text, *onClick)
Returns a new button item
- addItemSeperator(*width, *height)
Creates a new seperator between items
- addItemTextField(*width, *height, *type)
Returns a new text field item
Types: 1: Default 2: Decimals only 3: Masked input (e.g. passwords)
- setText(text)
Sets the text
- setText(text)
Sets the text inside the button
- setDisabled(disabled)
Disables the button
- getText()
Returns the text inside the text field
- setText(text)
Sets the text inside the text field
- setDisabled(disabled)
Disables the text field
- setOnEnter(function)
Executes this function once enter has been pressed while the text field is focused