label
This type represents a label control.
__call
Constructs the label.
Arguments
Name
Type
Description
str
string
Label string.
bold
bool
Whether to use bold font. Defaults to false
.
Returns
Type
Description
label
Label object.
Example
local lab = gui.label(id, 'Hello!');
set_text
Sets the new text.
Arguments
Name
Type
Description
str
string
New text.
Returns
Nothing.
Example
lab:set_text('New hello!');
Last updated