-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix editor test play autoplay / quick play toggles being usable while pause or resume overlays were showing #35698
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
96c66a1 to
ec6e382
Compare
bb89b4d to
b65b9fc
Compare
|
|
||
| private void toggleAutoplay() | ||
| { | ||
| if (GameplayClockContainer.IsPaused.Value) |
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.
Yeah so after actually checking behaviour of this, I don't think this is right at all.
There are two ways of pausing in editor player:
- quick pause via Ctrl-P
- full pause as in normal gameplay via Esc or what have you
Toggling autoplay in the first case is whatever and therefore I argue that it should not be blocked because it breaks nothing. Toggling it in the second case is broken and shouldn't be allowed (because the overlay is taking visual focus).
Moreover, the most broken thing here is that you can quick-unpause via Ctrl-P when the pause overlay is showing, which unpauses gameplay in the background.
So in short:
- Full pause / pause overlay showing should block both quick-pause (Ctrl-P) and also toggling autoplay (Tab)
- Toggling autoplay during quick pause is fine because it should bother nobody
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.
I changed the code now to allow toggling autoplay during quickpause but not fullpause. Quickpause is also not usable if the game is paused.
b65b9fc to
bed2325
Compare
Because they would propagate as other actions that have nothing to do with the editor if not blocked, and I found that ultra weird.
I could break the old flag-based methods by quick-pausing and then tabbing out of the game which would also show the pause overlay. I could also find more breakage related to these bindings when the resume overlay was visible after requesting unpause via the overlay.
No description provided.