Fix percentage-formatted displays containing a space (#7664)

Fix percentage-formatted displays containing a space
This commit is contained in:
Dean Herbert
2020-01-29 20:37:32 +09:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Overlays.BeatmapSet
int playCount = beatmap?.OnlineInfo?.PlayCount ?? 0;
var rate = playCount != 0 ? (float)passCount / playCount : 0;
successPercent.Text = rate.ToString("P0");
successPercent.Text = rate.ToString("0%");
successRate.Length = rate;
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);