Component_TextInput Class
The text-input component defines the logic for the text-input window of the default In-Game UI.
Methods
action_addLetter
(
-
sender
-
params
An action-method to add a single letter to the text.
Parameters:
-
sender
gs.Object_BaseThe sender of the action.
-
params
ObjectThe params-object which needs a letter-property containing the letter to add.
action_removeLetter
(
-
sender
-
[params=null]
An action-method to clear the letter at the current cursor position.
Parameters:
-
sender
gs.Object_BaseThe sender of the action.
-
[params=null]
Object optionalThe params-object. Can be null.
setText
(
-
text
Puts the specified text into the UI label-objects to make it visible on screen.
Parameters:
-
text
StringThe text to set.
Properties
cursor
Number
protected
The cursor position. Points to the current letter.
letters
Number
The max. number of letters.
text
String
The current text.