From accf365fd1b267966a367603a01e057c9cd2e773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adonais=20Romero=20Gonz=C3=A1lez?= Date: Sat, 8 Oct 2016 21:58:53 -0500 Subject: [PATCH] More styling. --- osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs | 1 + osu.Game/Graphics/UserInterface/NumericRollingCounter.cs | 1 - osu.Game/Graphics/UserInterface/ScoreCounter.cs | 6 ++++++ osu.Game/Graphics/UserInterface/StarCounter.cs | 5 +++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs index 0587ccea63..36218fa813 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs @@ -102,6 +102,7 @@ namespace osu.Desktop.Tests ac.Count = 0; cc.Count = 0; pc.SetCount(0, 0); + tc.Count = 0; }); AddButton(@"Hit! :D", delegate diff --git a/osu.Game/Graphics/UserInterface/NumericRollingCounter.cs b/osu.Game/Graphics/UserInterface/NumericRollingCounter.cs index 22f14838f6..ce0efb6450 100644 --- a/osu.Game/Graphics/UserInterface/NumericRollingCounter.cs +++ b/osu.Game/Graphics/UserInterface/NumericRollingCounter.cs @@ -33,7 +33,6 @@ namespace osu.Game.Graphics.UserInterface public override void Load() { - base.Load(); Children = new Drawable[] { diff --git a/osu.Game/Graphics/UserInterface/ScoreCounter.cs b/osu.Game/Graphics/UserInterface/ScoreCounter.cs index a23e7b5803..cdf22eaea1 100644 --- a/osu.Game/Graphics/UserInterface/ScoreCounter.cs +++ b/osu.Game/Graphics/UserInterface/ScoreCounter.cs @@ -16,6 +16,12 @@ namespace osu.Game.Graphics.UserInterface /// public uint LeadingZeroes = 0; + public override void Load() + { + base.Load(); + countSpriteText.FixedWidth = true; + } + protected override string formatCount(ulong count) { return count.ToString("D" + LeadingZeroes); diff --git a/osu.Game/Graphics/UserInterface/StarCounter.cs b/osu.Game/Graphics/UserInterface/StarCounter.cs index 3e56eb51eb..13300f1d4b 100644 --- a/osu.Game/Graphics/UserInterface/StarCounter.cs +++ b/osu.Game/Graphics/UserInterface/StarCounter.cs @@ -33,12 +33,13 @@ namespace osu.Game.Graphics.UserInterface public int StarSize = 20; - public int StarSpacing = 2; + public int StarSpacing = 4; public StarCounter() : base() { IsRollingProportional = true; - RollingDuration = 100; + RollingDuration = 150; + RollingEasing = EasingTypes.Out; } protected override ulong getProportionalDuration(float currentValue, float newValue)