Buttons

This page will show you how to use buttons.

Toggle Button:

function ButtonPress(State)
print("Button was pressed")
end

Page1:newBtn("Toggle Button!", ButtonPress, false) -- false will indicate if it is a normal button.

Normal Button:

function ButtonPress(State)
print("Button was pressed")
end

Page1:newBtn("Normal Button!", ButtonPress, true) -- true will indicate if it is a normal button.

Last updated

Was this helpful?