mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:43:21 +08:00
Fix display being incorrect when MaxValue is not 1
This commit is contained in:
parent
894642d588
commit
cfc4eaff59
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user