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
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@ protected override double GetProportionalDuration(double currentValue, double ne
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)