3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 10:27:49 +02:00

No need to pass in a hash when getting the data

This commit is contained in:
Björn Ritzl 2019-08-01 06:16:15 +02:00
parent 1ef779a37b
commit 9ab73567f8

View File

@ -18,7 +18,7 @@ function on_input(self, action_id, action)
if action_id == hash("touch") and action.released then
if gui.pick_node(self.yes, action.x, action.y) then
print("yes")
monarch.show(monarch.data(hash("confirm")).next, nil, nil, function()
monarch.show(monarch.data("confirm").next, nil, nil, function()
print("next screen show done")
end)
elseif gui.pick_node(self.no, action.x, action.y) then