With this component, the user can edit the text in a sibling text component. More...
Public Member Functions | |
SetText (string text) | |
Sets the given text in the related Text sibling component and moves the cursor position to its end. More... | |
Public Member Functions inherited from ComponentBaseT | |
any | get (string var_name) |
Returns the value of an attribute (a member variable) of this class. More... | |
set (string var_name, any new_value) | |
Sets an attribute (a member variable) of this class to a new value. More... | |
string | GetExtraMessage (string var_name) |
Returns the result of VarBaseT::GetExtraMessage() for the given member variable. More... | |
interpolate (string var_name, number start_value, number end_value, number time) | |
Schedules a value for interpolation between a start and end value over a given period of time. More... | |
Public Attributes | |
number | CursorPos |
The character position of the text cursor in the text. More... | |
number | CursorType |
The type of the text cursor. More... | |
number | CursorRate |
The rate in seconds at which the text cursor completes one blink cycle (on/off). More... | |
tuple | CursorColor |
The color of the text cursor. More... | |
number | CursorAlpha |
The alpha component of the color. More... | |
With this component, the user can edit the text in a sibling text component.
The component requires that the window also has a text component, whose value it updates according to user edits.
Note that the variables of this class (also referred to as "Public Attributes" or "Member Data") must be used with the get() and set() methods at this time – see get() and set() for details.
If you would like to create a new component of this type explicitly (those defined in the CaWE GUI Editor are instantiated automatically), use GuiT::new():
SetText | ( | string | text | ) |
Sets the given text in the related Text sibling component and moves the cursor position to its end.
number CursorAlpha |
The alpha component of the color.
float
tuple CursorColor |
The color of the text cursor.
Vector3fT
number CursorPos |
The character position of the text cursor in the text.
Valid values are 0 to Text.length().
unsigned int
number CursorRate |
The rate in seconds at which the text cursor completes one blink cycle (on/off).
float
number CursorType |
The type of the text cursor.
0 is a vertical bar cursor '|', 1 is an underline cursor '_'. Any other values default to the '|' cursor type.
Value | Description |
---|---|
0 | | |
1 | _ |
int