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 @@ 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";
}
}

View File

@ -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";
}
}

View File

@ -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;