From 5ab6fa69cdf71eaf6946a7ecabd0a5ee59fd065f Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 5 Sep 2022 06:11:45 -0400 Subject: [PATCH] don't multiply --- client/Ui/MainWindowTabs/Settings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Ui/MainWindowTabs/Settings.cs b/client/Ui/MainWindowTabs/Settings.cs index 68acea0..92124eb 100644 --- a/client/Ui/MainWindowTabs/Settings.cs +++ b/client/Ui/MainWindowTabs/Settings.cs @@ -23,7 +23,7 @@ internal class Settings : ITab { anyChanged |= vfx |= ImGui.Checkbox("Disable in Deep Dungeons", ref this.Plugin.Config.DisableDeepDungeon); anyChanged |= vfx |= ImGui.Checkbox("Remove glow effect from signs", ref this.Plugin.Config.RemoveGlow); anyChanged |= ImGui.Checkbox("Open the viewer automatically when near a sign", ref this.Plugin.Config.AutoViewer); - anyChanged |= ImGui.SliderFloat("Viewer opacity", ref this.Plugin.Config.ViewerOpacity, 0.1f, 1.0f, $"{this.Plugin.Config.ViewerOpacity * 100.0f}%%"); + anyChanged |= ImGui.SliderFloat("Viewer opacity", ref this.Plugin.Config.ViewerOpacity, 0.1f, 1.0f, $"{this.Plugin.Config.ViewerOpacity:N3}%%"); if (anyChanged) { this.Plugin.SaveConfig();