1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

feat(ArgonKeyCounter): make animation

Currently WIP. Do not consider this final.
This commit is contained in:
tsrk 2023-05-05 05:31:06 +01:00
parent 6368e1cc53
commit 74e7a958bb
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -69,8 +69,19 @@ namespace osu.Game.Screens.Play
{
base.LoadComplete();
IsActive.BindValueChanged(e => inputIndicator.Alpha = e.NewValue ? 1 : 0.5f, true);
CountPresses.BindValueChanged(e => countText.Text = e.NewValue.ToString(@"#,0"), true);
}
protected override void Activate(bool forwardPlayback = true)
{
base.Activate(forwardPlayback);
inputIndicator.FadeIn().MoveToY(0).Then().MoveToY(3, 100, Easing.OutQuart);
}
protected override void Deactivate(bool forwardPlayback = true)
{
base.Deactivate(forwardPlayback);
inputIndicator.MoveToY(0, 200, Easing.OutQuart).FadeTo(0.5f, 200, Easing.OutQuart);
}
}
}