1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:47:25 +08:00

Add commas to score counter.

This commit is contained in:
Dean Herbert 2017-04-11 19:21:05 +09:00
parent 3aefd50239
commit 2bb50ff082
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -48,7 +48,10 @@ namespace osu.Game.Graphics.UserInterface
protected override string FormatCount(double count)
{
return ((long)count).ToString("D" + LeadingZeroes);
string s = ((long)count).ToString("D" + LeadingZeroes);
for (int i = s.Length - 3; i > 0; i -= 3)
s = s.Insert(i, ",");
return s;
}
public override void Increment(double amount)