enforce single signficiant digit precision for other mods

This commit is contained in:
Liam DeVoe 2020-03-22 22:06:35 -04:00
parent 67667b3d22
commit cb6e602556
3 changed files with 3 additions and 3 deletions

View File

@ -31,6 +31,6 @@ namespace osu.Game.Rulesets.Mods
Precision = 0.01, Precision = 0.01,
}; };
public override string SettingDescription => SpeedChange.IsDefault ? string.Empty : $"{SpeedChange.Value}x"; public override string SettingDescription => SpeedChange.IsDefault ? string.Empty : $"{SpeedChange.Value:0.#}x";
} }
} }

View File

@ -31,6 +31,6 @@ namespace osu.Game.Rulesets.Mods
Precision = 0.01, Precision = 0.01,
}; };
public override string SettingDescription => SpeedChange.IsDefault ? string.Empty : $"{SpeedChange.Value}x"; public override string SettingDescription => SpeedChange.IsDefault ? string.Empty : $"{SpeedChange.Value:0.#}x";
} }
} }

View File

@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Mods
[SettingSource("Final rate", "The final speed to ramp to")] [SettingSource("Final rate", "The final speed to ramp to")]
public abstract BindableNumber<double> FinalRate { get; } public abstract BindableNumber<double> FinalRate { get; }
public override string SettingDescription => $"{InitialRate.Value} to {FinalRate.Value}"; public override string SettingDescription => $"{InitialRate.Value:0.#} to {FinalRate.Value:0.#}";
private double finalRateTime; private double finalRateTime;
private double beginRampTime; private double beginRampTime;