add sample with state

This commit is contained in:
Evgeny
2021-07-29 12:01:40 +03:00
parent 67528438f4
commit 9c515e1cfd

View File

@@ -0,0 +1,19 @@
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