From b299309463eb39ef6dbbd74dfbc255e5422f2b12 Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 27 Jul 2024 21:38:29 -0400 Subject: [PATCH] fix: show thresholds as percentages --- PluginUi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluginUi.cs b/PluginUi.cs index 2aec218..1d57a45 100644 --- a/PluginUi.cs +++ b/PluginUi.cs @@ -156,7 +156,7 @@ public class PluginUi : IDisposable { } 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; this.Plugin.Config.EvaluationThresholds[evaluation] = Math.Clamp(threshold / 100, 0, 1); }