mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
* Created queue and added show() as a queuable action * Improved logic in confirm popup - It should not crash if there is no next screen in data * Fixed indentation * Made the new queue a lot more stable. Fixed tests. * Removed debug output * Fixed issue with html5 builds
14 lines
461 B
Plaintext
14 lines
461 B
Plaintext
local monarch = require "monarch.monarch"
|
|
|
|
function init(self)
|
|
monarch.debug()
|
|
msg.post("@render:/", "clear_color", { color = vmath.vector4(0.4, 0.6, 0.8,1.0) })
|
|
msg.post("#", "init_monarch") -- wait until init() has been called for all screen.script instances
|
|
end
|
|
|
|
function on_message(self, message_id, message, sender)
|
|
if message_id == hash("init_monarch") then
|
|
monarch.show(hash("background"), { no_stack = true })
|
|
monarch.show(hash("menu"))
|
|
end
|
|
end |