Label

From TargetWiki

A Label is a type of widget. All widget functions can also be called on a label. Labels are drawn on screen using a label style which is set in the current theme.

Since a label is a Lua object, calls should use the object:function() syntax. Also, all Lua object functions can also be called on a label.

Functions

text()
Returns the <string> text of the label.
settext( <string> )
Sets the text for the label.
scale()
Returns the text scale.
setscale( <number> )
Sets the text scale. This is a multiplier on the point size of the font set by the style.
color()
Return the text color as four numbers: red, green, blue, and alpha.
setcolor( <red>, <green>, <blue>, <alpha> )
Set the text color for the label. Valid values for the parameters are 0 to 255.
Views