diff --git a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs
index bea2639512..0dcf289e39 100644
--- a/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs
+++ b/osu.Desktop.VisualTests/Tests/TestCaseScoreCounter.cs
@@ -25,7 +25,7 @@ namespace osu.Desktop.Tests
{
base.Reset();
- ScoreCounter uc = new ScoreCounter
+ ScoreCounter uc = new ScoreCounter(7)
{
Origin = Anchor.TopRight,
Anchor = Anchor.TopRight,
@@ -34,7 +34,6 @@ namespace osu.Desktop.Tests
RollingEasing = EasingTypes.Out,
Count = 0,
Position = new Vector2(20, 20),
- LeadingZeroes = 7,
};
Add(uc);
diff --git a/osu.Game/Graphics/UserInterface/ScoreCounter.cs b/osu.Game/Graphics/UserInterface/ScoreCounter.cs
index 802d2b9883..1fce361a0e 100644
--- a/osu.Game/Graphics/UserInterface/ScoreCounter.cs
+++ b/osu.Game/Graphics/UserInterface/ScoreCounter.cs
@@ -13,13 +13,22 @@ namespace osu.Game.Graphics.UserInterface
public class ScoreCounter : ULongCounter
{
///
- /// How many leading zeroes the counter will have.
+ /// How many leading zeroes the counter has.
///
- public uint LeadingZeroes = 0;
-
- public ScoreCounter() : base()
+ public uint LeadingZeroes
{
- countSpriteText.FixedWidth = true;
+ get;
+ protected set;
+ }
+
+ ///
+ /// Displays score.
+ ///
+ /// How many leading zeroes the counter will have.
+ public ScoreCounter(uint leading = 0) : base()
+ {
+ countSpriteText.FixedWidth = true;
+ LeadingZeroes = leading;
}
public override void Load(BaseGame game)