From 831908475ce5c9b88558becf508f376bf1e33cab Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Tue, 16 Jan 2024 21:50:46 +0100 Subject: [PATCH] Add tooltip to percentage selector and improve value drag range. --- Glamourer/Gui/Customization/CustomizeParameterDrawer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamourer/Gui/Customization/CustomizeParameterDrawer.cs b/Glamourer/Gui/Customization/CustomizeParameterDrawer.cs index 12de304..cef22f6 100644 --- a/Glamourer/Gui/Customization/CustomizeParameterDrawer.cs +++ b/Glamourer/Gui/Customization/CustomizeParameterDrawer.cs @@ -165,10 +165,10 @@ public class CustomizeParameterDrawer(Configuration config, PaletteImport import using (_ = ImRaii.Disabled(data.Locked)) { - if (ImGui.SliderFloat("##value", ref value, -1000f, 1000f, "%.2f")) + if (ImGui.SliderFloat("##value", ref value, -100f, 200f, "%.2f")) data.ValueSetter(new CustomizeParameterValue(value / 100f)); + ImGuiUtil.HoverTooltip("You can control-click this to enter arbitrary values by hand instead of dragging."); } - DrawRevert(data); DrawApplyAndLabel(data);