Monarch Versions Save

Monarch is a Defold screen manager with transition support and a straight forward API

5.1.1

2 months ago

FIX: Check that game objects exist before trying to delete them. Thanks @paweljarosz !

5.1.0

3 months ago

NEW: Added monarch.has_missing_resources(screen) to check if a screen proxy has any missing resources.

5.0.0

4 months ago

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.

4.6.1

4 months ago

FIX: Guard against deprecated screen_id and focus_id when loading from a screen factory.

4.6.0

6 months ago

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

4.5.0

8 months ago

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)

4.4.1

9 months ago

FIX: Issue with callbacks and monarch.back()

4.4.0

9 months ago

CHANGE: Screen in and out transition events are now sent at the right time.

4.3.1

9 months ago

FIX: Broken test and transition count order

4.3.0

9 months ago

NEW: monarch.back() now takes an options table as first argument:

local options = {
    sequential = true,    -- hide first, then show
}
monarch.back(options, data, cb)