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 action flag option for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 22, 2023
1 parent c4be5d8 commit 0bbfa9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion RotationSolver/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ public class PluginConfiguration : IPluginConfiguration
public string PositionalErrorText = string.Empty;
public float CountDownAhead = 0.6f;

public int NamePlateIconId = 71204; //61417
public int NamePlateIconId = 61417; // 71204
public bool ShowMeleeActionFlag = false;


public int MoveTargetAngle = 24;
public float HealthRatioBoss = 1.85f;
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings_Major.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ internal partial class Strings
public string Configwindow_Param_Advanced { get; set; } = "Advanced";
public string Configwindow_Param_PoslockCasting { get; set; } = "Lock the movement when casting.";
public string Configwindow_Param_UseStopCasting { get; set; } = "Use stopping casting when target is dead.";
public string Configwindow_Param_ShowMeleeActionFlag { get; set; } = "Show action flag when melee.";
public string Configwindow_Param_ShowHealthRatio { get; set; } = "Show the health ratio for the check of Boss, Dying, Dot.";

public string Configwindow_Param_HealthRatioBoss { get; set; } = "If target's max health ratio is higher than this, regard it as Boss.";
Expand Down
4 changes: 1 addition & 3 deletions RotationSolver/SigReplacers/Watcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,11 @@ private static unsafe void RecordAction(GameObject tar, Action action, byte flag
if (item.AddMacro(tar)) break;
}

#if DEBUG
if (flag != 0)
if (flag != 0 && Service.Configuration.ShowMeleeActionFlag)
{
Service.FlyTextGui.AddFlyText(Dalamud.Game.Gui.FlyText.FlyTextKind.NamedIcon, 0, 0, 0, "Flag:" + flag.ToString(), "",
ImGui.GetColorU32(new Vector4(0.4f, 0, 0, 1)), 0, action.Icon);
}
#endif

//事后骂人!
if (Service.Configuration.PositionalFeedback
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver/Windows/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ private void DrawParamAdvanced()

DrawFloatNumber(LocalizationManager.RightLang.Configwindow_Param_HealthRatioDot,
ref Service.Configuration.HealthRatioDot, speed: 0.02f, min: 0, max: 10);

DrawCheckBox(LocalizationManager.RightLang.Configwindow_Param_ShowMeleeActionFlag,
ref Service.Configuration.ShowMeleeActionFlag);
}

private void DrawParamDisplay()
Expand Down

0 comments on commit 0bbfa9e

Please sign in to comment.