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

Added support for monarch.post()

This commit is contained in:
Björn Ritzl
2019-08-01 07:21:20 +02:00
parent c7981e77cf
commit 6b3cc11073
8 changed files with 132 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ function final(self)
end
function on_message(self, message_id, message, sender)
-- Add message-handling code here
-- Remove this function if not needed
if message_id == hash("foobar") then
_G.screen1_foobar = message or true
end
end

View File

@@ -7,6 +7,7 @@ function final(self)
end
function on_message(self, message_id, message, sender)
-- Add message-handling code here
-- Remove this function if not needed
if message_id == hash("foobar") then
_G.screen2_foobar = message or true
end
end

View File

@@ -21,6 +21,11 @@ embedded_instances {
" value: \"screen1\"\n"
" type: PROPERTY_TYPE_HASH\n"
" }\n"
" properties {\n"
" id: \"receiver_url\"\n"
" value: \"screen1:/go\"\n"
" type: PROPERTY_TYPE_URL\n"
" }\n"
"}\n"
"embedded_components {\n"
" id: \"collectionproxy\"\n"