reference monoe.text

Lua API Reference

Properties

NameTypeDescription
uidinteger

monoe.text.new

Creates a new text label

Returns


monoe.text:move

Moves the label

Parameters

NameTypeDescription
xnumber
ynumber

Returns


monoe.text:size

Resizes the label, and returns its new size. If both x and y arguments are nil, it simply returns the size.

Parameters

NameTypeDescription
xnumber|nil
ynumber|nil

Returns


monoe.text:position

Repositions the label, and returns its new position. If both x and y arguments are nil, it simply returns the position.

Parameters

NameTypeDescription
xnumber|nil
ynumber|nil

Returns


monoe.text:text

Sets the text of the label


monoe.text:get

Returns the text of the label

Returns


monoe.text:font

Sets the font

Parameters

NameTypeDescription
pathstring|nil|'!'
sizeinteger|nil

monoe.text:color

Sets the font color

Parameters

NameTypeDescription
rnumberRed
gnumberGreen
bnumberBlue
anumber|nilAlpha

monoe.text:free

Frees the resources (no longer usable)


monoe.text:remove

Removes the object from its rendering server