Releases: britzl/monarch
Monarch 5.1.1
FIX: Check that game objects exist before trying to delete them. Thanks @paweljarosz !
Monarch 5.1.0
NEW: Added monarch.has_missing_resources(screen)
to check if a screen proxy has any missing resources.
Monarch 5.0.0
BREAKING CHANGE: Removed the backwards compatibility fix for monarch.back()
. The only accepted function signature is from now on monarch.back(options, data, cb)
with all three arguments being optional.
Monarch 4.6.1
FIX: Guard against deprecated screen_id and focus_id when loading from a screen factory.
Monarch 4.6.0
NEW: Added monarch.is_loaded(id)
to query if a screen is loaded or not
FIX: Posting a message to a screen is now possible again from the moment it is loaded
Monarch 4.5.0
CHANGE: It is now possible to provide a URL instead of a function to monarch.on_post()
-- 3 ways to set a url where messages to "myscreen" should be sent
monarch.on_post("myscreen", "some#url")
monarch.on_post("myscreen", msg.url("some#url"))
monarch.on_post("myscreen") -- use current script url
-- set a function to call when messages are sent to "myscreen"
monarch.on_post("myscreen", function(message_id, message)
print(message_id)
end)
Monarch 4.4.1
FIX: Issue with callbacks and monarch.back()
Monarch 4.4.0
CHANGE: Screen in and out transition events are now sent at the right time.
Monarch 4.3.1
FIX: Broken test and transition count order
Monarch 4.3.0
NEW: monarch.back()
now takes an options table as first argument:
local options = {
sequential = true, -- hide first, then show
}
monarch.back(options, data, cb)