From 38e311de0aebe77930bb088c7dc981ca7a02ea58 Mon Sep 17 00:00:00 2001 From: LTS-FFXIV <127939494+LTS-FFXIV@users.noreply.github.com> Date: Sun, 19 Jan 2025 21:18:59 -0600 Subject: [PATCH] Update UI descriptions and percentage handling in config Updated the `Configs` class to clarify the `_dispelAll` field's UI description, specifying it cleanses all dispellable debuffs. Adjusted the `RotationConfigWindow` class to handle user inputted values better --- RotationSolver.Basic/Configuration/Configs.cs | 2 +- RotationSolver/UI/RotationConfigWindow.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RotationSolver.Basic/Configuration/Configs.cs b/RotationSolver.Basic/Configuration/Configs.cs index be8a2abd..ce9d4ab9 100644 --- a/RotationSolver.Basic/Configuration/Configs.cs +++ b/RotationSolver.Basic/Configuration/Configs.cs @@ -197,7 +197,7 @@ public const string [ConditionBool, UI("Stop casting if the target dies.", Filter = Extra)] private static readonly bool _useStopCasting = false; - [ConditionBool, UI("Cleanse all dispellable debuffs.", + [ConditionBool, UI("Cleanse all dispellable debuffs (not just those in the status list).", Filter = AutoActionUsage, Section = 3, PvEFilter = JobFilterType.Dispel, PvPFilter = JobFilterType.NoJob)] private static readonly bool _dispelAll = false; diff --git a/RotationSolver/UI/RotationConfigWindow.cs b/RotationSolver/UI/RotationConfigWindow.cs index 0f2d7c0d..63b68047 100644 --- a/RotationSolver/UI/RotationConfigWindow.cs +++ b/RotationSolver/UI/RotationConfigWindow.cs @@ -1463,9 +1463,10 @@ private static void DrawRotationConfiguration() if (f.UnitType == ConfigUnitType.Percent) { - if (ImGui.SliderFloat(name, ref val, f.Min, f.Max, $"{val * 100:F1}{f.UnitType.ToSymbol()}")) + float displayValue = val * 100; + if (ImGui.SliderFloat(name, ref displayValue, f.Min * 100, f.Max * 100, $"{displayValue:F1}{f.UnitType.ToSymbol()}")) { - config.Value = val.ToString(); + config.Value = (displayValue / 100).ToString(); } } else