Class: Textbox

UI.Textbox

new UI.Textbox (parent, w, h, txt)

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 (defaults to shadow effect)

parent Core.Entity

parent

textBox CanvasInput

textbox of CanvasInput object

Methods

destroy ()

destroys CanvasInput related objects

getDimentions ()Utils.Vector2d

Get dimentions
Returns:
Type Description
Utils.Vector2d vector containing width and height

render ()Boolean

renders the textbox
Returns:
Type Description
Boolean true if rendered successfully; false otherwise.

setDimentions (w, h)

Set dimentions
Name Type Description
w Number width
h Number height

toggleEnabled ()

toggles the readonly property

update ()

updates the textbox transform