Added debug information regarding minions
This commit is contained in:
@@ -1688,6 +1688,46 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
||||
ImGui.EndTable();
|
||||
}
|
||||
|
||||
ImGui.Separator();
|
||||
ImGui.TextUnformatted("Owned / Minion-Mount");
|
||||
|
||||
if (ImGui.BeginTable("##pairDebugOwnedMinion", 2, ImGuiTableFlags.SizingStretchProp))
|
||||
{
|
||||
DrawPairPropertyRow("Owned Temp Collection", debugInfo.OwnedPenumbraCollectionId == Guid.Empty
|
||||
? "n/a"
|
||||
: debugInfo.OwnedPenumbraCollectionId.ToString());
|
||||
|
||||
DrawPairPropertyRow("Needs Collection Rebuild", FormatBool(debugInfo.NeedsCollectionRebuild));
|
||||
|
||||
DrawPairPropertyRow("Minion Ptr", string.IsNullOrEmpty(debugInfo.MinionAddressHex)
|
||||
? "n/a"
|
||||
: debugInfo.MinionAddressHex);
|
||||
|
||||
DrawPairPropertyRow("Minion ObjectIndex", debugInfo.MinionObjectIndex.HasValue
|
||||
? debugInfo.MinionObjectIndex.Value.ToString(CultureInfo.InvariantCulture)
|
||||
: "n/a");
|
||||
|
||||
DrawPairPropertyRow("Minion Resolved At", FormatTimestamp(debugInfo.MinionResolvedAtUtc));
|
||||
|
||||
DrawPairPropertyRow("Minion Resolve Stage", string.IsNullOrEmpty(debugInfo.MinionResolveStage)
|
||||
? "n/a"
|
||||
: debugInfo.MinionResolveStage);
|
||||
|
||||
DrawPairPropertyRow("Minion Resolve Failure", string.IsNullOrEmpty(debugInfo.MinionResolveFailureReason)
|
||||
? "n/a"
|
||||
: debugInfo.MinionResolveFailureReason);
|
||||
|
||||
DrawPairPropertyRow("Minion Pending Retry", FormatBool(debugInfo.MinionPendingRetry));
|
||||
|
||||
var retryChanges = debugInfo.MinionPendingRetryChanges is { Count: > 0 }
|
||||
? string.Join(", ", debugInfo.MinionPendingRetryChanges)
|
||||
: "n/a";
|
||||
DrawPairPropertyRow("Minion Pending Changes", retryChanges);
|
||||
|
||||
DrawPairPropertyRow("Minion Has Appearance Data", FormatBool(debugInfo.MinionHasAppearanceData));
|
||||
|
||||
ImGui.EndTable();
|
||||
}
|
||||
ImGui.Separator();
|
||||
ImGui.TextUnformatted("Syncshell Memberships");
|
||||
if (snapshot.PairsWithGroups.TryGetValue(pair, out var groups) && groups.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user