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

Commit

Permalink
fix: add a feature to displayStatus on the Rotation in Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 15, 2023
1 parent 28fedef commit 5a5623a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Rotations/CustomRotation_BasicInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,10 @@ protected virtual IRotationConfigSet CreateConfiguration()
/// </summary>
protected virtual void UpdateInfo() { }

public virtual void DisplayStatus()
{
ImGui.TextWrapped($"If you want to Display some extra information on this panel. Please override {nameof(DisplayStatus)} method!");
}

public override string ToString() => RotationName;
}
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Rotations/ICustomRotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ public interface ICustomRotation : ITexture
IAction RaiseShirkAbility { get; }
IAction AntiKnockbackAbility { get; }
bool TryInvoke(out IAction newAction, out IAction gcdAction);

/// <summary>
/// This is an <seealso cref="ImGui"/> method for display the rotation status on Window.
/// </summary>
void DisplayStatus();
}
4 changes: 4 additions & 0 deletions RotationSolver/UI/RotationConfigWindow_Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ private void DrawDebugTab()

if (ImGui.BeginTabBar("Debug Items"))
{
if(RotationUpdater.RightNowRotation != null)
{
DrawParamTabItem("Rotation", RotationUpdater.RightNowRotation.DisplayStatus);
}
DrawParamTabItem("Status", DrawStatus);
DrawParamTabItem("Party", DrawParty);
DrawParamTabItem("Target Data", DrawTargetData);
Expand Down

0 comments on commit 5a5623a

Please sign in to comment.