1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix decimal display of beatmap details being too precise.

This commit is contained in:
Dean Herbert 2017-04-24 18:34:27 +09:00
parent c61f69569c
commit ee659e7307

View File

@ -49,6 +49,7 @@ namespace osu.Game.Screens.Select
set
{
beatmap = value;
if (beatmap == null) return;
description.Text = beatmap.Version;
@ -252,7 +253,7 @@ namespace osu.Game.Screens.Select
new Container<BarGraph>
{
RelativeSizeAxes = Axes.X,
Size = new Vector2(1/0.6f, 50),
Size = new Vector2(1 / 0.6f, 50),
Children = new[]
{
retryGraph = new BarGraph
@ -308,7 +309,7 @@ namespace osu.Game.Screens.Select
{
difficultyValue = value;
bar.Length = value / maxValue;
valueText.Text = value.ToString(CultureInfo.InvariantCulture);
valueText.Text = value.ToString("N1", CultureInfo.CurrentCulture);
}
}
@ -431,4 +432,4 @@ namespace osu.Game.Screens.Select
}
}
}
}
}