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
Björn Ritzl
dbf1bdea9d
Replay transitions when the layout changes
2018-05-25 15:33:51 +02:00
Björn Ritzl
f811c1f306
Accept both hash and string as screen id
2018-03-24 12:08:16 +01:00
Björn Ritzl
a4cef48239
Handle layout change and window resize for transitions
2018-03-19 22:56:12 +01:00
Björn Ritzl
9cdf4817e8
Added popup_on_popup flag to screens
2017-12-28 00:02:10 +01:00
Björn Ritzl
6474c9a173
Improved the transition module
...
The transition module will now properly handle if the same transition is started more than once before completed. In such a case only one animation will be played but all senders will be notified when completed.
2017-12-07 23:03:54 +01:00
Björn Ritzl
1d476424ce
Added more logging
2017-12-07 21:09:13 +01:00
Björn Ritzl
007a4eced3
Improved on the state handling while showing/hiding screens
...
Also added simple debug logging
2017-12-07 20:49:48 +01:00
Björn Ritzl
19e9c0d8a7
Added multiple bugfixes
2017-12-06 21:25:27 +01:00
Björn Ritzl
1b3b16c355
Added more documentation. Changed monarch.get_stack()
2017-12-01 09:31:50 +01:00
Björn Ritzl
e6615e2888
Started adding unit tests
2017-11-30 20:25:17 +01:00
Björn Ritzl
036cdb853d
Fixed some issues regarding focus lost/gained next/previous screen id
2017-11-27 21:48:21 +01:00
Björn Ritzl
62684f9795
Merge pull request #8 from AGulev/master
...
Replace strings with constants / new type of transactions / information for the focus messages
2017-11-27 21:21:46 +01:00
Björn Ritzl
895bc6f9ed
Merge pull request #5 from subsoap/master
...
Adding monarch.screen_exists(id)
2017-11-27 21:16:13 +01:00
AGulev
4ead8d9d42
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# monarch/monarch.lua
2017-11-27 10:57:32 +03:00
Björn Ritzl
4c65581456
A couple of bug fixes. Added reload option.
2017-11-22 13:28:27 +01:00
AGulev
8324b54fc5
remove unneed print
2017-11-20 18:57:06 +03:00
AGulev
36e3f69f48
add more information for focus events
2017-11-20 18:52:18 +03:00
Brian Kramer
8df7ddd32f
Adding monarch.screen_exists(id)
...
In some projects may need to wait until initial screen has been
registered before attempting to show it
2017-11-08 09:29:25 -08:00
AGulev
00c458a05a
scale_in and scale_out transactions
2017-11-03 10:24:37 +03:00
AGulev
de2fa9c4e2
replace hashes with constants
2017-11-03 09:50:28 +03:00
Björn Ritzl
e46a703b25
Changed from controller_url to focus_url. Improved docs
2017-09-28 08:22:05 +02:00
Björn Ritzl
e24acb51d8
Fixed wrong message constant
2017-09-26 02:16:44 +02:00
Björn Ritzl
1174de2ba5
Cleanup
2017-09-25 21:55:12 +02:00
Björn Ritzl
95fd994fa0
Simplified message constant. Added focus message
2017-09-25 21:33:28 +02:00
Björn Ritzl
e7edfbe173
Changed how transition urls are defined
2017-09-25 21:21:33 +02:00
Björn Ritzl
d397b90dc2
Default to 0 delay
2017-09-25 18:16:04 +02:00