1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Increase flash delay and ensure text is always shown immediately on lock

This commit is contained in:
Dean Herbert 2022-06-01 16:05:29 +09:00
parent 58ba92772c
commit f3fd5bbfc1

View File

@ -99,7 +99,10 @@ namespace osu.Game.Screens.Edit.Timing
displayLocked.BindValueChanged(locked =>
{
lockedOverlay.FadeTo(locked.NewValue ? 1 : 0, 200, Easing.OutQuint);
if (locked.NewValue)
lockedOverlay.Show();
else
lockedOverlay.Hide();
}, true);
}
@ -268,15 +271,20 @@ namespace osu.Game.Screens.Edit.Timing
};
}
protected override void LoadComplete()
public override void Show()
{
base.LoadComplete();
this.FadeIn(100, Easing.OutQuint);
text
.FadeIn().Then().Delay(500)
.FadeOut().Then().Delay(500)
.FadeIn().Then().Delay(600)
.FadeOut().Then().Delay(600)
.Loop();
}
public override void Hide()
{
this.FadeOut(100, Easing.OutQuint);
}
}
internal class WaveformRow : CompositeDrawable