1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 23:00:50 +08:00

Hide back button when quick-restarting unless load time takes long

This commit is contained in:
Salman Alshamrani
2024-11-24 05:40:06 -05:00
Unverified
parent 2420793466
commit ae9119eef0
+4
View File
@@ -478,6 +478,8 @@ namespace osu.Game.Screens.Play
if (quickRestart)
{
BackButtonState.Value = Visibility.Hidden;
// A quick restart starts by triggering a fade to black
AddInternal(quickRestartBlackLayer = new Box
{
@@ -496,6 +498,8 @@ namespace osu.Game.Screens.Play
.Delay(quick_restart_initial_delay)
.ScaleTo(1)
.FadeInFromZero(500, Easing.OutQuint);
this.Delay(quick_restart_initial_delay).Schedule(() => BackButtonState.Value = Visibility.Visible);
}
else
{