mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use formatter to add zeroes.
This commit is contained in:
@ -48,10 +48,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override string FormatCount(double count)
|
protected override string FormatCount(double count)
|
||||||
{
|
{
|
||||||
string s = ((long)count).ToString("D" + LeadingZeroes);
|
string format = new string('0', (int)LeadingZeroes);
|
||||||
for (int i = s.Length - 3; i > 0; i -= 3)
|
for (int i = format.Length - 3; i > 0; i -= 3)
|
||||||
s = s.Insert(i, ",");
|
format = format.Insert(i, @",");
|
||||||
return s;
|
|
||||||
|
return ((long)count).ToString(format);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Increment(double amount)
|
public override void Increment(double amount)
|
||||||
|
Reference in New Issue
Block a user