mirror of
https://github.com/ppy/osu
synced 2025-01-13 09:31:19 +00:00
feat(ArgonKeyCounter): flash key name
This commit is contained in:
parent
74e7a958bb
commit
e9d7cd7a79
@ -14,6 +14,7 @@ namespace osu.Game.Screens.Play
|
||||
public partial class ArgonKeyCounter : KeyCounter
|
||||
{
|
||||
private Circle inputIndicator = null!;
|
||||
private OsuSpriteText keyNameText = null!;
|
||||
private OsuSpriteText countText = null!;
|
||||
|
||||
// These values were taken from Figma
|
||||
@ -42,7 +43,7 @@ namespace osu.Game.Screens.Play
|
||||
Height = line_height * scale_factor,
|
||||
Alpha = 0.5f
|
||||
},
|
||||
new OsuSpriteText
|
||||
keyNameText = new OsuSpriteText
|
||||
{
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft,
|
||||
@ -75,6 +76,7 @@ namespace osu.Game.Screens.Play
|
||||
protected override void Activate(bool forwardPlayback = true)
|
||||
{
|
||||
base.Activate(forwardPlayback);
|
||||
keyNameText.FlashColour(Colour4.White, 200);
|
||||
inputIndicator.FadeIn().MoveToY(0).Then().MoveToY(3, 100, Easing.OutQuart);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user