From 1a31589abd275d445b5140c86691ee9ed02c75c7 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sat, 18 Feb 2017 17:35:37 +0900 Subject: [PATCH] Add padding zeroes to score display (and fix not being applied initially). --- osu.Game.Modes.Osu/UI/OsuScoreOverlay.cs | 2 +- osu.Game/Graphics/UserInterface/RollingCounter.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game.Modes.Osu/UI/OsuScoreOverlay.cs b/osu.Game.Modes.Osu/UI/OsuScoreOverlay.cs index eb5aaa97c9..c7791ab8b4 100644 --- a/osu.Game.Modes.Osu/UI/OsuScoreOverlay.cs +++ b/osu.Game.Modes.Osu/UI/OsuScoreOverlay.cs @@ -13,7 +13,7 @@ namespace osu.Game.Modes.Osu.UI { public class OsuScoreOverlay : ScoreOverlay { - protected override ScoreCounter CreateScoreCounter() => new ScoreCounter() + protected override ScoreCounter CreateScoreCounter() => new ScoreCounter(6) { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, diff --git a/osu.Game/Graphics/UserInterface/RollingCounter.cs b/osu.Game/Graphics/UserInterface/RollingCounter.cs index e0a5d8ed2d..1c287e2a30 100644 --- a/osu.Game/Graphics/UserInterface/RollingCounter.cs +++ b/osu.Game/Graphics/UserInterface/RollingCounter.cs @@ -117,10 +117,6 @@ namespace osu.Game.Graphics.UserInterface AutoSizeAxes = Axes.Both; DisplayedCount = Count; - - DisplayedCountSpriteText.Text = FormatCount(count); - DisplayedCountSpriteText.Anchor = Anchor; - DisplayedCountSpriteText.Origin = Origin; } protected override void LoadComplete() @@ -128,6 +124,10 @@ namespace osu.Game.Graphics.UserInterface base.LoadComplete(); Flush(false, TransformType); + + DisplayedCountSpriteText.Text = FormatCount(count); + DisplayedCountSpriteText.Anchor = Anchor; + DisplayedCountSpriteText.Origin = Origin; } ///