From c31b88941ab398ea1feca10374122c1cbd394727 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Fri, 23 Sep 2016 22:39:36 +0100 Subject: [PATCH] No longer using KeyCounter/key-hit.png as it was unnecessary to create the needed visuals. Borrowed nicer spritetext positions from huoyaoyuan --- osu.Game/Graphics/UserInterface/Count.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/Count.cs b/osu.Game/Graphics/UserInterface/Count.cs index 2c3a743a28..1793711ba9 100644 --- a/osu.Game/Graphics/UserInterface/Count.cs +++ b/osu.Game/Graphics/UserInterface/Count.cs @@ -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; }