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

Commit

Permalink
fix: add CMD action showcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent bd964d5 commit 5edd2e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static bool SetAutoStatus(AutoStatus status, bool keep)
}

private static List<NextAct> NextActs = new List<NextAct>();
public static IBaseAction TimeLineAction { internal get; set; }
internal static IAction CommandNextAction
public static IBaseAction TimeLineAction { private get; set; }
public static IAction CommandNextAction
{
get
{
Expand Down
8 changes: 8 additions & 0 deletions RotationSolver/UI/ControlWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ private static void DrawSpecials()
DrawCommandAction(rotation?.AntiKnockbackAbility,
SpecialCommandType.AntiKnockback, ImGuiColors.DalamudWhite2);

ImGui.Text("CMD:");
ImGui.SameLine();
DrawIAction(DataCenter.CommandNextAction, Service.Config.ControlWindow0GCDSize, 1);

ImGui.SameLine();

ImGui.BeginGroup();
ImGui.Text(DataCenter.RightNowTargetToHostileType switch
{
TargetHostileType.AllTargetsCanAttack => LocalizationManager.RightLang.ConfigWindow_Param_TargetToHostileType1,
Expand All @@ -147,6 +154,7 @@ private static void DrawSpecials()
});

ImGui.Text("Auto: " + DataCenter.AutoStatus.ToString());
ImGui.EndGroup();
}

static void DrawCommandAction(IAction gcd, IAction ability, SpecialCommandType command, Vector4 color)
Expand Down

0 comments on commit 5edd2e1

Please sign in to comment.