3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 10:27:49 +02:00

92 Commits

Author SHA1 Message Date
Björn Ritzl
c75b1b0044 A screen added with no_stack should not manipulate the stack when hidden 2021-08-19 14:53:05 +02:00
Björn Ritzl
d3799a93ff Make sure that callbacks aren't invoked more than once 2021-08-19 14:35:05 +02:00
Björn Ritzl
76d4ca2927 Added monarch.clear() 2021-07-20 00:27:34 +02:00
Björn Ritzl
9e81b3a327 Removed one-frame delay during show/back-in
If the screen had a transition the delay caused the screen to render in its initial position for one frame before the transition was applied
2021-07-01 15:04:52 +02:00
Björn Ritzl
4927d6e766 Update stack earlier when showing new screen
Fixes #76
2021-06-27 00:34:32 +02:00
Björn Ritzl
20cf731fdb
Wait with screen unload until next screen is loaded and ready to be shown (#74)
* Removed screen flicker when transitioning between screens

* Moved advanced example to subfolder. Added basic example.

* Remove flicker on back navigation too

* Fix issue with no_stack screens added at any time
2021-06-24 07:45:09 +02:00
Björn Ritzl
a19bdd78e8
Added monarch.is_popup() (#70) 2021-02-14 11:53:52 +01:00
Brian
03baa3eeb3
Only allow editor script to target .gui (#67)
* Only allow editor script to target .gui

Disable .collection and .gui_script

* whitespace
2020-11-23 08:32:12 +01:00
Marius Petcu
00808c0d56
Implement better behaviour for replace() on popups (#64) 2020-05-28 17:18:51 +02:00
Björn Ritzl
4989939817 Always print errors. Do not rely on monarch debugging 2020-05-28 08:20:43 +02:00
Björn Ritzl
bf880b80fd Print errors if caught in the callback tracker 2020-05-28 08:08:35 +02:00
Marius Petcu
4ad86d41fc
Implement monarch.replace() (#61) 2020-05-20 15:36:29 +02:00
Marius Petcu
c7fb2ba646
Add sequential loading flag (#62) 2020-05-20 14:58:04 +02:00
Björn Ritzl
909ada9f18 Fix issue when a layout changes and there's an ongoing transition 2020-05-10 22:51:08 +02:00
Jerakin
c7ff068f79 Added editor script to create base setup (#57) 2020-01-16 08:45:48 +01:00
Björn Ritzl
bb1f34149a Check if proxy is missing resources when loading/showing it
Fixes #56
2019-12-10 07:11:30 +01:00
Björn Ritzl
68cda52c0d Update monarch.lua 2019-09-14 01:25:43 +02:00
Björn Ritzl
81237762be Transition out and in again if showing the same screen twice
Fixes #54
2019-09-14 01:23:14 +02:00
Björn Ritzl
49dd390812
Added queue support to Monarch (#49)
* 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
2019-08-05 14:37:25 +02:00
Björn Ritzl
478835f888
New options to keep focus on screens even when covered by other screens (#51)
* Added option to continue to receive input when below a popup

* Added option to not remove input focus when a screen is put on top of another one
2019-08-03 15:44:39 +02:00
Björn Ritzl
354dc71b12 Don't create a transition for a node if one already exists
Fixes #50
2019-08-03 15:40:06 +02:00
Björn Ritzl
6b3cc11073 Added support for monarch.post() 2019-08-01 07:21:20 +02:00
Björn Ritzl
c7981e77cf Fixed typo in assert text 2019-08-01 07:20:48 +02:00
Björn Ritzl
ebc1d09c21 Wrong logging of input focus actions 2019-08-01 06:16:54 +02:00
Björn Ritzl
d74efaf186 Added callback tracker tests 2019-07-31 18:20:06 +02:00
Björn Ritzl
f5879a5f63 Added support for multiple nodes per transition 2019-07-29 07:34:34 +02:00
Björn Ritzl
e4ca53630e Assert on coroutine.resume to catch more errors 2019-05-02 09:36:52 +02:00
Björn Ritzl
9afd77e2b0 Changed scope of top in show() 2019-05-02 09:36:23 +02:00
Björn Ritzl
9808c09aa1 Wait when reloading 2019-05-02 09:36:03 +02:00
Björn Ritzl
05f91dd763 Make sure focus_lost messages is received
Fixes #42
2019-03-17 21:50:01 +01:00
Björn Ritzl
57946d27bf Added is_preloading() and when_loaded() 2019-03-08 10:28:39 +01:00
Björn Ritzl
1bc0ae09ee Simplified coroutine usage when running screen code 2019-03-08 09:11:37 +01:00
Björn Ritzl
66bdde41ed Make sure to pcall when invoking callbacks 2019-03-08 09:08:34 +01:00
Björn Ritzl
35dd0c3f70 Changed from listeners to transition_listeners table to be more explicit 2019-03-08 09:07:12 +01:00
Björn Ritzl
7d986ada1b pcall in the callback tracker 2019-03-08 09:03:29 +01:00
Björn Ritzl
7e2ff2990c Make sure to also reload pre-loaded screens if required
Fixes #39
2019-03-05 00:21:23 +01:00
Björn Ritzl
38f95e0b5b Wait for popups when closing them 2019-01-23 08:08:56 +01:00
Björn Ritzl
79df80df33 Added show() function for adding outside the stack. Fixes #26 2019-01-11 11:11:19 +01:00
Björn Ritzl
ff8214583b Added support for unloading a preloaded screen 2019-01-11 08:47:24 +01:00
Björn Ritzl
7740499821 Added support for automatically preloading screens 2019-01-11 08:47:06 +01:00
Björn Ritzl
753d003861
Preload fix (#34)
* Don't try to preload if monarch is busy
* Added test for #32
2018-12-10 12:27:11 +01:00
Björn Ritzl
3443484cce Added support for collection factories 2018-07-27 13:28:36 +02:00
Björn Ritzl
b73ed95315 Removed code duplication when loading 2018-07-27 09:48:59 +02:00
Björn Ritzl
8d1051f0fd Added Timestep below Popup
Fixes #25
2018-07-26 10:52:03 +02:00
Björn Ritzl
bc4260d72a Added fade in/out transition 2018-07-13 06:54:26 +02:00
Björn Ritzl
07eacc7a5f Track when callbacks are invoked so that we can ensure that all screens are shown/hidden before invoking callbacks 2018-06-21 11:33:20 +02:00
Björn Ritzl
5ee6ea5982 Log when monarch is busy 2018-06-21 11:30:17 +02:00
Björn Ritzl
f590c75b9e Removed debug prints that was accidentally left behind 2018-06-21 11:29:59 +02:00
Björn Ritzl
22f0e6cddf Changed from single notification to begin and end notification for every navigation 2018-06-20 13:46:45 +02:00
Björn Ritzl
3947e86169 Added navigation listeners 2018-06-20 07:30:38 +02:00