update scripts

This commit is contained in:
Evgeny
2021-08-02 19:52:44 +03:00
parent d5d5504631
commit 0e79d5f275
3 changed files with 73 additions and 1 deletions

View File

@@ -8,5 +8,9 @@ function on_click()
end
function on_dialog_action(idx)
ui:show_toast("Checked: "..dialog_items[idx])
if idx == -1 then
ui:show_toast("Dialog cancelled")
else
ui:show_toast("Checked: "..dialog_items[idx])
end
end