fix: show thresholds as percentages

This commit is contained in:
Anna 2024-07-27 21:38:29 -04:00
parent 5efc92e093
commit b299309463
Signed by: anna
GPG Key ID: D0943384CD9F87D1

View File

@ -156,7 +156,7 @@ public class PluginUi : IDisposable {
} }
threshold *= 100f; threshold *= 100f;
if (ImGui.SliderFloat(Enum.GetName(evaluation), ref threshold, 0, 100)) { if (ImGui.SliderFloat(Enum.GetName(evaluation), ref threshold, 0, 100, "%.2f%%")) {
anyChanged = true; anyChanged = true;
this.Plugin.Config.EvaluationThresholds[evaluation] = Math.Clamp(threshold / 100, 0, 1); this.Plugin.Config.EvaluationThresholds[evaluation] = Math.Clamp(threshold / 100, 0, 1);
} }