mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Add optional decimal place
This commit is contained in:
parent
447f31ccfc
commit
f4ee281dd6
@ -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("0%");
|
||||
successPercent.Text = rate.ToString("0.#%");
|
||||
successRate.Length = rate;
|
||||
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user