mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
13 lines
271 B
Plaintext
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
|