1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 12:42:54 +08:00

Add padding zeroes to score display (and fix not being applied initially).

This commit is contained in:
Dean Herbert 2017-02-18 17:35:37 +09:00
parent 32ce8cf723
commit 1a31589abd
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ namespace osu.Game.Modes.Osu.UI
{ {
public class OsuScoreOverlay : ScoreOverlay public class OsuScoreOverlay : ScoreOverlay
{ {
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter() protected override ScoreCounter CreateScoreCounter() => new ScoreCounter(6)
{ {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,

View File

@ -117,10 +117,6 @@ namespace osu.Game.Graphics.UserInterface
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
DisplayedCount = Count; DisplayedCount = Count;
DisplayedCountSpriteText.Text = FormatCount(count);
DisplayedCountSpriteText.Anchor = Anchor;
DisplayedCountSpriteText.Origin = Origin;
} }
protected override void LoadComplete() protected override void LoadComplete()
@ -128,6 +124,10 @@ namespace osu.Game.Graphics.UserInterface
base.LoadComplete(); base.LoadComplete();
Flush(false, TransformType); Flush(false, TransformType);
DisplayedCountSpriteText.Text = FormatCount(count);
DisplayedCountSpriteText.Anchor = Anchor;
DisplayedCountSpriteText.Origin = Origin;
} }
/// <summary> /// <summary>