3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-27 18:12:22 +02:00
Files
Monarch-Extension/example/basic/basic.script

13 lines
271 B
Plaintext

local monarch = require "monarch.monarch"
function init(self)
msg.post(".", "acquire_input_focus")
msg.post("#", "show_screen1")
end
function on_message(self, message_id, message, sender)
if message_id == hash("show_screen1") then
monarch.show("screen1")
end
end