mirror of https://github.com/ppy/osu
enforce single signficiant digit precision for other mods
This commit is contained in:
parent
67667b3d22
commit
cb6e602556
|
@ -31,6 +31,6 @@ public abstract class ModDoubleTime : ModRateAdjust
|
|||
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 @@ public abstract class ModHalfTime : ModRateAdjust
|
|||
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 @@ public abstract class ModTimeRamp : Mod, IUpdatableByPlayfield, IApplicableToBea
|
|||
[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