Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: changed the Action display in Action Panel.
Browse files Browse the repository at this point in the history
Add a `Must & Empty Use` one, remove some useless params.
  • Loading branch information
ArchiDog1998 committed Apr 11, 2023
1 parent 010f64a commit fc47cc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RotationSolver/UI/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fc47cc6

Please sign in to comment.