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:
parent
32ce8cf723
commit
1a31589abd
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user