mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Increase flash delay and ensure text is always shown immediately on lock
This commit is contained in:
parent
58ba92772c
commit
f3fd5bbfc1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user