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

105 Commits

Author SHA1 Message Date
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
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