mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Rolling counters (initial)
This commit is contained in:
21
osu.Game/Graphics/UserInterface/ScoreCounter.cs
Normal file
21
osu.Game/Graphics/UserInterface/ScoreCounter.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user