mirror of https://github.com/ppy/osu
Add commas to score counter.
This commit is contained in:
parent
3aefd50239
commit
2bb50ff082
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue