1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 01:07:42 +08:00
osu-lazer/osu.Game/Graphics/UserInterface/ScoreCounter.cs
Adonais Romero González accf365fd1 More styling.
2016-10-08 21:58:53 -05:00

31 lines
810 B
C#

//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace osu.Game.Graphics.UserInterface
{
public class ScoreCounter : ULongCounter
{
/// <summary>
/// How many leading zeroes the counter will have.
/// </summary>
public uint LeadingZeroes = 0;
public override void Load()
{
base.Load();
countSpriteText.FixedWidth = true;
}
protected override string formatCount(ulong count)
{
return count.ToString("D" + LeadingZeroes);
}
}
}