GUITextfield
new GUITextfield(id, options, guimanager, append)
Creates a new GUITextfield
Parameters
Name | Type | Description |
---|---|---|
Name id | Type string | Description The id and name element |
Name options | Type json | Description Options of element |
Name guimanager | Type GUIManager | Description The gui manager |
Name append | Type bool | Description is added to the <body>. => True by default (optional) |
Options
- x: position left of textfield (in pixel)
- y: position top of textfield (in pixel)
- size: size the textfield (int) => 30 by default (optional)
- color: color the textfield (string) => "white" by default (optional)
- value: value of textfield (string)
- placeholder: value by default of textfield (string)
- zIndex: depth of the element (int) => 1 by default
- tabindex: Tab order of the field.
Methods
getValue() → void
Get the value element
setValue() → void
Set the value element
setVisible(bool, fade) → void
Set this GUI element to visible or invisible
isVisible() → void
Returns element if is visible or no
dispose() → void
Dispose the GUITextfield, and delete element.