mirror of
https://github.com/ppy/osu
synced 2025-01-24 23:03:14 +00:00
Use formatter to add zeroes.
This commit is contained in:
parent
2bb50ff082
commit
2987a57588
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user