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

88 Commits

Author SHA1 Message Date
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
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
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
f811c1f306 Accept both hash and string as screen id 2018-03-24 12:08:16 +01:00
Björn Ritzl
9cdf4817e8 Added popup_on_popup flag to screens 2017-12-28 00:02:10 +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
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
09e2478378 Allow data to be passed when showing or going back 2017-09-25 18:15:55 +02:00
Björn Ritzl
9be4eeb87c Added optional callback function when transition is done 2017-09-17 18:55:39 +02:00
Björn Ritzl
a68fac766f Improved examples. Added transitions 2017-09-04 21:26:06 +02:00
Björn Ritzl
0bb9b69a45 Initial commit 2017-09-04 12:01:57 +02:00