3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-28 02:22:20 +02:00

Added sliding window example

This commit is contained in:
Björn Ritzl
2023-03-28 15:42:39 +02:00
parent c14e4a8a46
commit e0b0a286e3
13 changed files with 879 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
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("window1"))
end
end