1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 23:57:22 +08:00

Change accuracy formatting method

This commit is contained in:
TheWildTree 2020-02-05 17:42:14 +01:00
parent e79ba9a129
commit 63df6b8da6

View File

@ -16,6 +16,7 @@ using osu.Game.Scoring;
using osu.Game.Users.Drawables;
using osuTK;
using osuTK.Graphics;
using osu.Game.Utils;
namespace osu.Game.Overlays.BeatmapSet.Scores
{
@ -120,7 +121,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
new OsuSpriteText
{
Margin = new MarginPadding { Right = horizontal_inset },
Text = $@"{score.Accuracy:0.00%}",
Text = score.Accuracy.FormatAccuracy(alwaysShowDecimals: true),
Font = OsuFont.GetFont(size: text_size),
Colour = score.Accuracy == 1 ? highAccuracyColour : Color4.White
},