Björn Ritzl
b01f5d28c3
Update monarch.lua
2023-12-27 15:54:09 +01:00
Pete Garcin
43e847dacc
Guard DEPRECATED transition_id overwriting transition_url ( #100 )
2023-12-27 15:52:36 +01:00
Björn Ritzl
742779d749
Allow monarch.post() to loaded screens
...
Fixes #98
2023-10-26 13:54:14 +02:00
Björn Ritzl
84944f3f22
Added monarch.is_loaded()
2023-10-26 11:43:19 +02:00
Björn Ritzl
c473aa053c
Update monarch.lua
2023-08-31 09:25:00 +02:00
Björn Ritzl
169236acbd
Improved on_post() to also accept a url
2023-08-31 09:22:24 +02:00
Björn Ritzl
b7053d2ce4
Fixed another back issue (and tests)
2023-08-10 00:21:15 +02:00
Björn Ritzl
91204ca30b
Wait for both in and out transitions ( #97 )
2023-08-10 00:08:10 +02:00
Björn Ritzl
6f79bd0326
Swap transition count and listener order
2023-08-08 23:51:48 +02:00
Björn Ritzl
e5214edb22
Fix back() callback
2023-08-08 23:51:29 +02:00
Björn Ritzl
5bdc3e4540
Added option table to back()
2023-08-08 22:53:00 +02:00
Björn Ritzl
5d8fa8e220
monarch.post() requires monarch.on_post()
2023-08-03 08:35:04 +02:00
Björn Ritzl
df2a2a62ea
Improved screen proxy url detection
2023-08-03 08:34:26 +02:00
Björn Ritzl
0191a4e540
Set focus, transition and receiver as deprecated
2023-08-02 07:47:32 +02:00
Björn Ritzl
c601174b9d
Improved handling of unregistered screens ( #93 )
...
* Set cowait flag
* Set screen as unregistered
* Do not process screen which have been unregistered
* Java 17
2023-07-29 11:28:18 +02:00
Björn Ritzl
66d2c98ccc
Clear wait_for flag on proxy loaded
2023-07-29 10:29:51 +02:00
Björn Ritzl
e8249229b9
Differentiate messages and wait for constants
2023-07-29 10:29:21 +02:00
Björn Ritzl
2eb67bf29d
Squashed commit of the following:
...
commit 698cdba5a469f900b902da360ad05e103cd1a39b
Author: Björn Ritzl <bjorn.ritzl@gmail.com>
Date: Wed Mar 29 11:10:49 2023 +0200
Documentation
commit d8de338a465066a9b9ff1bb6d20b5476e78d6359
Author: Björn Ritzl <bjorn.ritzl@gmail.com>
Date: Wed Mar 29 10:40:38 2023 +0200
Added focus and post listener setup functions
commit 55910abd74542513795dae3ccb9b4fd87da22b74
Author: Björn Ritzl <bjorn.ritzl@gmail.com>
Date: Wed Mar 29 09:49:00 2023 +0200
Update gui.lua
commit a055af032fb47d67647e0b7bc09ad4721fd623d7
Author: Björn Ritzl <bjorn.ritzl@gmail.com>
Date: Wed Mar 29 09:19:49 2023 +0200
Improve transition setup
2023-07-27 23:53:37 +02:00
Björn Ritzl
fe8341263a
Update gui.lua
2023-03-29 09:20:37 +02:00
Björn Ritzl
9c7ce61f6f
Removed unused local var
2023-02-09 23:39:04 +01:00
Björn Ritzl
f5afbad233
Fixed global assignment
2023-02-09 23:38:53 +01:00
Björn Ritzl
6fe59c92c4
Make sure to force unload a preloaded screen
2022-07-23 00:09:51 +02:00
Björn Ritzl
286a270a1c
Check if screen was loaded before trying to unload
2022-07-05 22:54:40 +02:00
Björn Ritzl
c0d45c3d5c
Added keep_loaded option to preload()
...
Fixes #88
2022-07-04 22:43:25 +02:00
Björn Ritzl
bcc6264cd4
Remove screen from stack when unregistered
...
Fixes #87
2022-05-29 14:47:34 +02:00
Björn Ritzl
1dec704047
Delay reset of timestep when going back from popup
...
Fixes #84
2022-02-23 12:46:04 +01:00
Björn Ritzl
9764c68475
Update callback_tracker.lua
...
Fixes #83
2022-01-27 12:16:43 +01:00
Björn Ritzl
d57d550859
Fixed issues with missing variables
2022-01-27 12:15:52 +01:00
Björn Ritzl
17df189089
Replace existing transition
...
Fixes #82
2022-01-13 19:40:24 +01:00
Björn Ritzl
387a1805eb
Added option to change timestep for screen when below popup
...
Fixes #73
2021-09-19 23:08:31 +02:00
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