Rolling counters (initial)

This commit is contained in:
Adonais Romero González
2016-10-07 02:05:02 -05:00
parent 3c01f59e00
commit 00cfc51004
10 changed files with 874 additions and 0 deletions

View File

@ -0,0 +1,21 @@
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);
}
}
}