Skip to content

Documentation

pongo1231 edited this page Feb 9, 2019 · 2 revisions

* = Optional, pass either nothing or -1 for default values

InterfaceBuilder

  • createInterface()

Returns a new interface

Interface

  • show()

Displays the interface

  • isVisible()

Returns if the interface is being displayed

  • createWindow(*width, *height, *title)

Returns a new window

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

Window and Container

  • 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)

Text Item

  • setText(text)

Sets the text

Button

  • setText(text)

Sets the text inside the button

  • setDisabled(disabled)

Disables the button

Text Field Item

  • 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

Clone this wiki locally