new UITextBox(position, textSize, width, color, textColor, callback, context) → {UITextBox}
Creates a text box that accepts user input
Parameters:
Name | Type | Description |
---|---|---|
position |
Array.<Array> | The position of the text box |
textSize |
float | The size of the text and the height of the text |
width |
float | The width of the text box |
color |
Array.<Array> | The color of the text box |
textColor |
Array.<Array> | The color of the text |
callback |
function | The function called when enter is presed |
context |
object | Who the function belonged to |
- Source:
Returns:
- Type
- UITextBox
Methods
_applyUIXform(aCamera)
Changes the size and position to be compatible witht the camera
Parameters:
Name | Type | Description |
---|---|---|
aCamera |
Camera | The camera to adjust for |
- Source:
draw(aCamera)
Draws the text box
Parameters:
Name | Type | Description |
---|---|---|
aCamera |
Camera | The camera it will be drawn on |
- Source:
getEnteredValue() → {String}
Returns the most recent entered value
- Source:
Returns:
- Type
- String
keyCheck()
This handles the key input for the text box
- Source:
update(aCamera)
Update the text box
Parameters:
Name | Type | Description |
---|---|---|
aCamera |
Camera | The camera that's drawing the text box |
- Source: