mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 08:59:17 +01:00
feat: add party list debug
This commit is contained in:
parent
850a698630
commit
427a7632ee
1 changed files with 17 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Dalamud.Game.Chat;
|
using Dalamud.Game.Chat;
|
||||||
using Dalamud.Game.ClientState.Actors.Types;
|
using Dalamud.Game.ClientState.Actors.Types;
|
||||||
|
|
@ -46,8 +47,8 @@ namespace Dalamud.Interface
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
var copy = ImGui.Button("Copy all");
|
var copy = ImGui.Button("Copy all");
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGui.Combo("Data kind", ref this.currentKind, new[] {"ServerOpCode", "ContentFinderCondition", "State", "Font Test"},
|
ImGui.Combo("Data kind", ref this.currentKind, new[] {"ServerOpCode", "ContentFinderCondition", "Actor Table", "Font Test", "Party List"},
|
||||||
4);
|
5);
|
||||||
|
|
||||||
ImGui.BeginChild("scrolling", new Vector2(0, 0), false, ImGuiWindowFlags.HorizontalScrollbar);
|
ImGui.BeginChild("scrolling", new Vector2(0, 0), false, ImGuiWindowFlags.HorizontalScrollbar);
|
||||||
|
|
||||||
|
|
@ -113,6 +114,20 @@ namespace Dalamud.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.TextUnformatted(specialChars);
|
ImGui.TextUnformatted(specialChars);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var partyString = string.Empty;
|
||||||
|
|
||||||
|
if (this.dalamud.ClientState.PartyList.Length == 0) {
|
||||||
|
ImGui.TextUnformatted("Data not ready.");
|
||||||
|
} else {
|
||||||
|
|
||||||
|
partyString += $"{this.dalamud.ClientState.PartyList.Count} Members";
|
||||||
|
partyString = this.dalamud.ClientState.PartyList.Aggregate(partyString, (current, member) => current + $"{member.CharacterName} - {member.ObjectKind} - {member.Actor.ActorId}");
|
||||||
|
|
||||||
|
ImGui.TextUnformatted(partyString);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue