Functions

Button(init) Constructor
Button:draw() Draw the button
Button:set_value(v) Set the value of the button

Functions

Button(init)

Constructor

Parameters:

init Constructor properties
init.toggles Whether button toggles (default true)
init.value Initial value (default false)
Button:draw()

Draw the button

Button:set_value(v)

Set the value of the button

Parameters:

v True/False