Name | Type | Description |
---|---|---|
parent |
Core.Entity | entity to attach to |
w |
Number | the width |
h |
Number | the height |
txt |
String | the default text to display (defaults to "") |
Members
-
effect Graphics.Effect
-
effect (defaults to shadow effect)
-
parent Core.Entity
-
parent
-
textbox of CanvasInput object
Methods
-
destroys CanvasInput related objects
-
getDimentions ()Utils.Vector2d
-
Get dimentions
Returns:
Type Description Utils.Vector2d vector containing width and height -
renders the textbox
Returns:
Type Description Boolean true if rendered successfully; false otherwise. -
Set dimentions
Name Type Description w
Number width h
Number height -
toggles the readonly property
-
updates the textbox transform