-
Notifications
You must be signed in to change notification settings - Fork 480
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
Fix: Removed pop-up issues during loading screen in Boss Room [MTT-3787] [MTT-5711] #879
Fix: Removed pop-up issues during loading screen in Boss Room [MTT-3787] [MTT-5711] #879
Conversation
Like your other PRs, I'll mark this one as On Hold until this PR goes through. |
Hey Elfi! I'm wondering if we can adjust the sort order of the canvases again--I'm seeing that the loading screen now draws behind the In Game UI when it probably should be blocking all of it except for RNSM and the disconnection pop-ups (especially when when switching from the Char Select screen to in game 👀) If it's helpful, I think the order we should shoot for is: -TOP- My thinking is that this way, RNSM and one's potentially disconnected status are still visible at all times, while the loading screen blocks all other UI (which looks quite a bit cleaner/less cluttered, and could eliminate the possibility of some weird edge case that could crop up from being able to quit the game in the middle of loading it, or something similar, as a bonus ✨) |
Sort Orders: PopUpPanel = 1 Loading Screen = 0 SettingsPanel Canvas = -1 Boss Room HUD = -2 Main Menu UI Canvas = -3 UI Root (PostGame) = -3
@jilfranco-unity Thank you for your feedback! I changed the sort order of the UI items accordingly, the new sorting order is the following: Please check if it now works as expected. :) |
fixe that it does not block join game option on startup
Definitely looking much cleaner now! :) Last thing I've seen is that sometimes the menu buttons are drawn behind this panel in the character select scene, as seen here: They look fine sometimes, so my guess is that they're both set to same the sort order value and will randomly on top of the other at runtime? But yeah once that's fixed, I think we're good to go! 👍 |
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.
Awesome, looks good! :)
so one of the original bug tickets is that the RNSM window was drawing behind the loading screen. If I put the sort order of the other UI elements in front of the RNSM then they will also draw in front of the loading screen or if the other way around the RNSM window will draw behind the loading screen again
EDIT: I personally feel like it is small issue and that both having them in front or behind the network simulator works. I could adjust this one so that the settings are in front of it, but then I need to readjust the rest again to make it work...
I was evaluating that with Jil yesterday. If it draws in front of the popup it blocks the player from using the button for "join game", we could change the font size a bit more or the layout. But then it might be a bit small or have a weird layout. |
@fernando-cortez I addressed your feedback and adjusted the order again : PopUpPanel (DisconnectionPopUp) = 1 I also changed the RNSM window size (as it was very small) through creating a Panel settings override for it and made a Prefab out of the UIRoot in the postgame scene to make it more coherent (as all other canvases are a prefab) |
Oh sorry with my last comment I was referring to the in-game message feed. The ones inside CharSelect, BossRoom, and PostGame scenes that say "X player has joined/left the game!" That should probably draw on top of NetworkSimulator window too, no? They're temporary messages anyways. Since they're canvases that are a part of each scene's main canvas, we can just override their sorting order. |
…ow.prefab to -1 and renamed UIRoot to PostGameUICanvas
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.
Looks good to me now!
Thanks for cleaning up the PostGame scene along the way.
I'll let @jilfranco-unity take a look and give final approval.
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.
Oh nice! The changes look good to me yeah! 🚀
Awesome thank you both! I will merge it now, (feels surreal right now haha was quite the journey xD) |
Description
I adjusted the sort order of different UI elements in order to display the RNSM window as well as the PopupPanel displaying connection attempts after a disconnect in front of the loading screen.
To verify the changes are correct:
Issue Number(s)
MTT-3787
MTT-5711
Contribution checklist