class
GUITextField
A composite GUI object representing an editor field.
Editor fields are a combination of a label and an input field. Label is optional. This specific implementation displays a text input field.
Public
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
SetValue
Value in the text field.
GetValue
HasInputFocus
Checks whether the element currently has keyboard focus.
staticCreate
Creates a new GUI element.
- contents
- Structure describing the contents of the GUI element to create.
- styleClass
- Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
- options
- Additional options that control GUI element size and position. This will override options set in the style sheet.
Fields
Internal
Constructors
GUITextField
Methods
SetValueInternal
Sets a new value in the input field, and also allows you to choose should the field trigger an onValueChanged event.
Protected
Methods
UpdateLayoutForChildren
Calculates sizes and relative positions for all child elements.
Should be preceded with a call to UpdateOptimalLayoutSizes().
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
ValueChanged
Triggered when the value in the internal input box changes.
DoOnInputBoxFocusGained
Triggers when the input box receives keyboard focus.
DoOnInputBoxFocusLost
Triggers when the input box loses keyboard focus.
InputConfirmed
Triggered when the users confirms input in the input box.