mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
enforce single signficiant digit precision for other mods
This commit is contained in:
parent
67667b3d22
commit
cb6e602556
@ -31,6 +31,6 @@ namespace osu.Game.Rulesets.Mods
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,6 @@ namespace osu.Game.Rulesets.Mods
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
[SettingSource("Final rate", "The final speed to ramp to")]
|
||||
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 beginRampTime;
|
||||
|
Loading…
Reference in New Issue
Block a user