mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 07:43:16 +08:00
No longer using KeyCounter/key-hit.png as it was unnecessary to create the needed visuals.
Borrowed nicer spritetext positions from huoyaoyuan
This commit is contained in:
parent
b4ce71fbbe
commit
c31b88941a
@ -54,14 +54,18 @@ namespace osu.Game.Graphics
|
||||
keySpriteText = new SpriteText
|
||||
{
|
||||
Text = name,
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Position = new Vector2(0, -buttonSprite.Height / 4),
|
||||
Colour = textColourNormal,
|
||||
},
|
||||
countSpriteText = new SpriteText
|
||||
{
|
||||
Text = count.ToString(),
|
||||
Anchor = Anchor.BottomCentre,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Position = new Vector2(0, buttonSprite.Height / 4),
|
||||
Colour = textColourNormal,
|
||||
}
|
||||
};
|
||||
|
||||
@ -76,7 +80,6 @@ namespace osu.Game.Graphics
|
||||
countSpriteText.Text = (++count).ToString();
|
||||
countSpriteText.Colour = textColourGlow;
|
||||
keySpriteText.Colour = textColourGlow;
|
||||
buttonSprite.Texture = Game.Textures.Get(@"key-hit");
|
||||
glowSprite.Show();
|
||||
}
|
||||
|
||||
@ -86,7 +89,6 @@ namespace osu.Game.Graphics
|
||||
return;
|
||||
countSpriteText.Colour = textColourNormal;
|
||||
keySpriteText.Colour = textColourNormal;
|
||||
buttonSprite.Texture = Game.Textures.Get(@"KeyCounter/key-up");
|
||||
glowSprite.FadeOut(4);
|
||||
isLit = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user