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
Björn Ritzl
e570eac40b
Don't preload an already loaded screen
2018-06-18 07:19:37 +02:00
Björn Ritzl
d1cf8281c9
Added helpers for common sets of transitions
2018-06-16 22:43:25 +02:00
Björn Ritzl
091fab0c7f
Changed how monarch busy state is tracked
2018-06-16 22:27:03 +02:00
Björn Ritzl
4231b0b89c
Prevent show/back operations while busy
...
Fixes #22
2018-06-10 16:17:41 +02:00
Alexey Gulev
c2239d67e5
Finish transition when layout changes ( #21 )
...
* If layout changes when transaction in progress we have to finish current transaction
2018-06-10 14:31:46 +02:00
Björn Ritzl
cf75bef8da
Merge branch 'master' of https://github.com/britzl/monarch
2018-06-04 13:56:47 +02:00
Björn Ritzl
66b1f7ca2e
Added monarch.top() and bottom()
2018-06-04 13:56:45 +02:00
Björn Ritzl
0fdfb6fd11
Send information about the next/prev screen in transition message
2018-06-04 13:56:23 +02:00
Alexey Gulev
6fbec4ab8f
preventing double preload of the screen ( #20 )
...
* preventing double preload of the screen
2018-06-04 07:48:46 +02:00
Björn Ritzl
ffc148b4bf
Added preload()
2018-06-03 17:32:13 +02:00
Björn Ritzl
724713f9e4
Include transition id in TRANSITION.DONE message
...
Also send the TRANSITION.DONE message to the gui that was transitioned
2018-06-01 08:43:08 +02:00