Files
aiolauncher_scripts/buttons_with_state_sample.lua
2021-07-29 12:01:40 +03:00

20 lines
303 B
Lua

buttons = { "Disabled", "Disabled", "Disabled" }
function onResume()
redraw()
end
function onClick(idx)
if buttons[idx] == "Disabled" then
buttons[idx] = "Enabled"
else
buttons[idx] = "Disabled"
end
redraw()
end
function redraw()
ui:showButtons(buttons)
end