Use a more familiar lua snake_hour

This commit is contained in:
Evgeny
2021-08-01 19:57:41 +03:00
parent 6e24536f99
commit f24288af99
26 changed files with 208 additions and 184 deletions

View File

@@ -1,10 +1,10 @@
buttons = { "Disabled", "Disabled", "Disabled" }
function onResume()
function on_resume()
redraw()
end
function onClick(idx)
function on_click(idx)
if buttons[idx] == "Disabled" then
buttons[idx] = "Enabled"
else
@@ -15,5 +15,5 @@ function onClick(idx)
end
function redraw()
ui:showButtons(buttons)
ui:show_buttons(buttons)
end