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

Commit

Permalink
fix: update with painter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jun 5, 2023
1 parent 172fa8c commit bf68a22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"ConfigWindow_Param_Advanced": "Advanced",
"ConfigWindow_Param_PoslockCasting": "Lock the movement when casting or has TenChiJin or PhantomFlurry status.",
"ConfigWindow_Param_UseStopCasting": "Use stopping casting when target is dead.",
"ConfigWindow_Param_ShowActionFlag": "Show action flag.",
"ConfigWindow_Param_InDebug": "Debug Mode",
"ConfigWindow_Param_ShowHealthRatio": "Show the health ratio for the check of Boss, Dying, Dot.",
"ConfigWindow_Param_HealthRatioBoss": "If target's max health ratio is higher than this, regard it as Boss.",
Expand Down
6 changes: 4 additions & 2 deletions RotationSolver/UI/PainterManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using ECommons.DalamudServices;
using ECommons.GameHelpers;
using RotationSolver.Commands;
using RotationSolver.Updaters;
using XIVPainter;
using XIVPainter.Element3D;

Expand Down Expand Up @@ -88,7 +90,7 @@ public static void Init()
annulus.UpdateEveryFrame = () =>
{
if (Player.Available && (Player.Object.IsJobCategory(JobRole.Tank) || Player.Object.IsJobCategory(JobRole.Melee)) && (Svc.Targets.Target?.IsNPCEnemy() ?? false) && Service.Config.DrawMeleeOffset
&& DataCenter.StateType != StateCommandType.Cancel)
&& DataCenter.StateType != StateCommandType.Cancel && ActionUpdater.NextGCDAction == null)
{
annulus.Target = Svc.Targets.Target;
}
Expand All @@ -102,7 +104,7 @@ public static void Init()

var c = Service.Config.MovingTargetColor;
var color = ImGui.GetColorU32(new Vector4(c.X, c.Y, c.Z, 1));
var movingTarget = new Drawing3DHighlightLine(default, default, 0.5f, color, 2);
var movingTarget = new Drawing3DHighlightLine(default, default, 0.5f, color, 3);
movingTarget.UpdateEveryFrame = () =>
{
var tar = CustomRotation.MoveTarget;
Expand Down
2 changes: 1 addition & 1 deletion XIVPainter

0 comments on commit bf68a22

Please sign in to comment.