1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-22 21:23:09 +08:00

Merge pull request #30680 from peppy/fix-black-layer-on-quick-restart-exit

Fix black layer not fading fast enough when exiting quickly from quick restart
This commit is contained in:
Dan Balasescu 2024-11-16 14:00:19 +09:00 committed by GitHub
commit bf2e0ed005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,6 +331,9 @@ namespace osu.Game.Screens.Play
cancelLoad(); cancelLoad();
ContentOut(); ContentOut();
quickRestartBlackLayer?.FadeOut(100, Easing.OutQuint).Expire();
quickRestartBlackLayer = null;
// Ensure the screen doesn't expire until all the outwards fade operations have completed. // Ensure the screen doesn't expire until all the outwards fade operations have completed.
this.Delay(CONTENT_OUT_DURATION).FadeOut(); this.Delay(CONTENT_OUT_DURATION).FadeOut();