-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If more than one screen is shown on the same frame, only the first is shown #43
Comments
Does monarch.show() return false? You can also do monarch.is_busy() to check if Monarch is currently busy showing a screen or not. |
Yes, it does return false! Good to know. |
I'm thinking that maybe a monarch.when_idle(cb) function could be added that will get invoked when Monarch isn't busy anymore. Or that monarch.show() would have a queue of requests and handle them one by one. |
"monarch.show() would have a queue of requests and handle them one by one." That sounds like a good option to me, then it would "just work" from the devs perspective. |
Queue support added to branch https://github.com/britzl/monarch/tree/dev-queue @Jerakin and @totebo would you mind trying this branch on some of your projects and let me know if anything isn't working as expected? |
I decided to merge to master and release 3.0.0 with queue support. |
Took me while to realise why my game over screen didn't fire. The use case here is:
The game over screen never shows in this scenario. The workaround is to wait a frame to show the game over screen, which is fine, but thought I'd mention it because it took me a while to figure out why it's not working as expected.
The text was updated successfully, but these errors were encountered: