Skip to content
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

collection unloading / resetting the stack #87

Closed
dri-richard opened this issue May 28, 2022 · 1 comment
Closed

collection unloading / resetting the stack #87

dri-richard opened this issue May 28, 2022 · 1 comment

Comments

@dri-richard
Copy link

When we finalize/unload and then reload a collection that contains Monarch screens, the screen_proxy scripts unregister themselves from Monarch, but any open screens stay in the stack.

This has affected a debug feature we added to allow QA to load a saved game at any time, because the loaded game begins with Monarch in an unexpected state. It would be great if monarch.unregister() would remove screens from the stack, because I'd like to avoid special-purpose code to prepare the game for such a reload.

As a workaround I noticed that there is now a monarch.clear() but it isn't instantaneous as it does all of the transitions as it backs out of each screen.

@britzl
Copy link
Owner

britzl commented May 28, 2022

It would be great if monarch.unregister() would remove screens from the stack

Makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants