From 2bb50ff082b0a3a9c13e09f43320ebd80da34f43 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 11 Apr 2017 19:21:05 +0900 Subject: [PATCH] Add commas to score counter. --- osu.Game/Graphics/UserInterface/ScoreCounter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/UserInterface/ScoreCounter.cs b/osu.Game/Graphics/UserInterface/ScoreCounter.cs index 367e3bbb1a..a9f402b13d 100644 --- a/osu.Game/Graphics/UserInterface/ScoreCounter.cs +++ b/osu.Game/Graphics/UserInterface/ScoreCounter.cs @@ -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)