Class: InputBox

InputBox(x, y, w, h, placeholder, layeropt)

Unicode-capable `` aligned to the canvas.

Constructor

new InputBox(x, y, w, h, placeholder, layeropt)

Parameters:
Name Type Attributes Default Description
x number Centre x (canvas px)
y number Centre y (canvas px)
w number Width (px)
h number Height (px)
placeholder string Optional placeholder string
layer number <optional>
0 Draw-order layer
Source:

Members

hidden

Hide / show box.
Source:

value

Current string value.
Source:

Methods

focus()

Focus keyboard cursor.
Source:

moveTo(x, y)

Move centre coordinate.
Parameters:
Name Type Description
x number
y number
Source:

resize(w, h)

Resize box.
Parameters:
Name Type Description
w number
h number
Source: