mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08: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)
|
||||
{
|
||||
string s = ((long)count).ToString("D" + LeadingZeroes);
|
||||
for (int i = s.Length - 3; i > 0; i -= 3)
|
||||
s = s.Insert(i, ",");
|
||||
return s;
|
||||
string format = new string('0', (int)LeadingZeroes);
|
||||
for (int i = format.Length - 3; i > 0; i -= 3)
|
||||
format = format.Insert(i, @",");
|
||||
|
||||
return ((long)count).ToString(format);
|
||||
}
|
||||
|
||||
public override void Increment(double amount)
|
||||
|
Loading…
Reference in New Issue
Block a user