mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 22:02:56 +08:00
Hide back button when quick-restarting unless load time takes long
This commit is contained in:
parent
2420793466
commit
ae9119eef0
@ -478,6 +478,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
if (quickRestart)
|
if (quickRestart)
|
||||||
{
|
{
|
||||||
|
BackButtonState.Value = Visibility.Hidden;
|
||||||
|
|
||||||
// A quick restart starts by triggering a fade to black
|
// A quick restart starts by triggering a fade to black
|
||||||
AddInternal(quickRestartBlackLayer = new Box
|
AddInternal(quickRestartBlackLayer = new Box
|
||||||
{
|
{
|
||||||
@ -496,6 +498,8 @@ namespace osu.Game.Screens.Play
|
|||||||
.Delay(quick_restart_initial_delay)
|
.Delay(quick_restart_initial_delay)
|
||||||
.ScaleTo(1)
|
.ScaleTo(1)
|
||||||
.FadeInFromZero(500, Easing.OutQuint);
|
.FadeInFromZero(500, Easing.OutQuint);
|
||||||
|
|
||||||
|
this.Delay(quick_restart_initial_delay).Schedule(() => BackButtonState.Value = Visibility.Visible);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user