mirror of https://github.com/ppy/osu
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:
commit
bf2e0ed005
|
@ -331,6 +331,9 @@ public override bool OnExiting(ScreenExitEvent e)
|
||||||
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue