TargetWidget resolve obsoletes (#1290)

This commit is contained in:
MidoriKami 2023-07-02 09:13:21 -07:00 committed by GitHub
parent 3bf1a05f7d
commit 1cc07cc3d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,20 +65,20 @@ internal class TargetWidget : IDataWindowWidget
Util.PrintGameObject(targetMgr.SoftTarget, "SoftTarget", this.resolveGameData); Util.PrintGameObject(targetMgr.SoftTarget, "SoftTarget", this.resolveGameData);
if (ImGui.Button("Clear CT")) if (ImGui.Button("Clear CT"))
targetMgr.ClearTarget(); targetMgr.Target = null;
if (ImGui.Button("Clear FT")) if (ImGui.Button("Clear FT"))
targetMgr.ClearFocusTarget(); targetMgr.FocusTarget = null;
var localPlayer = clientState.LocalPlayer; var localPlayer = clientState.LocalPlayer;
if (localPlayer != null) if (localPlayer != null)
{ {
if (ImGui.Button("Set CT")) if (ImGui.Button("Set CT"))
targetMgr.SetTarget(localPlayer); targetMgr.Target = localPlayer;
if (ImGui.Button("Set FT")) if (ImGui.Button("Set FT"))
targetMgr.SetFocusTarget(localPlayer); targetMgr.FocusTarget = localPlayer;
} }
else else
{ {