This type represents a label control.
This type inherits control type. All of its base methods and fields are also available in this type.
control
Constructor
Constructs the label.
Arguments
Name
Type
Description
id
control_id
Control ID.
str
string
Label string.
col
color?
Label color. Defaults to nil.
nil
bold
bool
Whether to use bold font. Defaults to false.
false
Returns
label
Label object.
Example
local lab = gui.label(id, 'Hello!');
Method
Sets the new text.
New text.
Nothing.
Last updated 1 year ago
lab:set_text('New hello!');