Skip to content

Commit

Permalink
added GetTargetName
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Dec 12, 2023
1 parent b2f909a commit 8627dd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SomethingNeedDoing/Interface/HelpWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ static void DisplayChangelog(string date, string changes, bool separator = true)
"- Added IsQuestComplete()\n" +
"- Added GetQuestSequence()\n" +
"- Added GetQuestIDByName()\n" +
"- Added GetNodeListCount()\n");
"- Added GetNodeListCount()\n" +
"- Added GetTargetName()\n");

DisplayChangelog(
"2023-11-06",
Expand Down Expand Up @@ -963,6 +964,8 @@ byte GetQuestSequence(ushort id)
uint? GetQuestIDByName(string name)
int GetNodeListCount(string addonName)
string GetTargetName()
".Trim();

ImGui.TextWrapped(text);
Expand Down
2 changes: 2 additions & 0 deletions SomethingNeedDoing/Misc/CommandInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ public unsafe int GetNodeListCount(string addonName)
return 0;
}

public string GetTargetName() => Svc.Targets.Target?.Name.TextValue ?? "";

private unsafe int GetNodeTextAsInt(AtkTextNode* node, string error)
{
try
Expand Down

0 comments on commit 8627dd8

Please sign in to comment.