1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Fix display being incorrect when MaxValue is not 1

This commit is contained in:
Dean Herbert 2020-01-29 12:50:21 +09:00
parent 894642d588
commit cfc4eaff59

View File

@ -174,12 +174,10 @@ namespace osu.Game.Graphics.UserInterface
else
{
double floatValue = value.ToDouble(NumberFormatInfo.InvariantInfo);
double floatMaxValue = CurrentNumber.MaxValue.ToDouble(NumberFormatInfo.InvariantInfo);
if (DisplayAsPercentage)
{
double percentage = floatValue / floatMaxValue;
TooltipText = percentage.ToString("P0");
TooltipText = floatValue.ToString("P0");
}
else
{