-
Notifications
You must be signed in to change notification settings - Fork 560
feat: popup panel stacking #510
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
Conversation
Added a message channel for ConnectionStatus
Put on hold as it is not needed for GDC |
* Removed the stack in PopupPanel and replaced it with a list of PopupPanels in PopupManager * PopupPanel now only represents an actual popup * When calling PopupManager, it will instantiate or reuse previous instances of the PopupPanel prefab to display the popup
tested on my phone with a 20:9 ratio and 720x1600 resolution (both in portrait and landscape orientations) with enough popups stacked to reach the maximum popup offset and they all were still visible in the screen. |
Apart from the DI comment - this PR is 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will approve once the conversation regarding DI is resolved.
Description (*)
This PR simplifies PopupPanel so its only responsibility is to display a single message. It moves the responsibility of creating those messages to the PopupManager. The PopupManager will instantiate PopupPanel gameObjects and display them when it is called. It will reuse those instantiated objects when possible (which is most of the time since we likely won't display more than one or two at once in a regular case).
Related Pull Requests
Issue Number(s) (*)
Fixes issue(s): MTT2733
Manual testing scenarios
The simplest way to see this PR's effects is to duplicate calls to ShowPopupPanel() to have multiple popups at once. Or add a coroutine that perdically calls this, so that you can experiment with closing some of them before new ones are created.
Questions or comments
Contribution checklist