mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
22 lines
523 B
C#
22 lines
523 B
C#
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;
|
|
|
|
protected override string formatCount(ulong count)
|
|
{
|
|
return count.ToString("D" + LeadingZeroes);
|
|
}
|
|
}
|
|
}
|