mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 06:49:54 +08:00
Hide back button when quick-restarting unless load time takes long
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user