From fc47cc68a4165976a2cad4523166ff99698e67b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Tue, 11 Apr 2023 09:45:22 +0800 Subject: [PATCH] fix: changed the Action display in Action Panel. Add a `Must & Empty Use` one, remove some useless params. --- RotationSolver/UI/ImGuiHelper.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RotationSolver/UI/ImGuiHelper.cs b/RotationSolver/UI/ImGuiHelper.cs index 1afbf23c6..1b1501ac5 100644 --- a/RotationSolver/UI/ImGuiHelper.cs +++ b/RotationSolver/UI/ImGuiHelper.cs @@ -602,18 +602,20 @@ private unsafe static void Display(this IBaseAction action, bool IsActive) => ac { try { - ImGui.Text("Have One:" + action.HasOneCharge.ToString()); +#if DEBUG ImGui.Text("Is Real GCD: " + action.IsRealGCD.ToString()); + ImGui.Text("Has One:" + action.HasOneCharge.ToString()); ImGui.Text("Recast One: " + action.RecastTimeOneCharge.ToString()); ImGui.Text("Recast Elapsed: " + action.RecastTimeElapsed.ToString()); ImGui.Text("Recast Remain: " + action.RecastTimeRemain.ToString()); ImGui.Text("Status: " + ActionManager.Instance()->GetActionStatus(ActionType.Spell, action.AdjustedID).ToString()); - ImGui.Text("Cast Time: " + action.CastTime.ToString()); ImGui.Text("MP: " + action.MPNeed.ToString()); +#endif ImGui.Text($"Can Use: {action.CanUse(out _)} "); ImGui.Text("Must Use:" + action.CanUse(out _, CanUseOption.MustUse).ToString()); ImGui.Text("Empty Use:" + action.CanUse(out _, CanUseOption.EmptyOrSkipCombo).ToString()); + ImGui.Text("Must & Empty Use:" + action.CanUse(out _, CanUseOption.MustUse | CanUseOption.EmptyOrSkipCombo).ToString()); if (action.Target != null) { ImGui.Text("Target Name: " + action.Target.Name);