Last updated 3 months ago
This type represents a button control.
This type inherits type. All of its base methods and fields are also available in this type.
Constructor
Constructs the button.
Arguments
Name
Type
Description
id
Control ID.
str
string
Text string.
Returns
button
Button object.
Example
local btn = gui.button(id, 'Hello!');
control
control_id