mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add mod state debugging.
This commit is contained in:
parent
777c0cc69e
commit
b1ab7e1cd0
1 changed files with 21 additions and 0 deletions
|
|
@ -160,6 +160,27 @@ public class DebugTab : ITab
|
|||
foreach (var collection in _collectionManager.Storage)
|
||||
PrintValue(collection.Name, collection.HasCache.ToString());
|
||||
}
|
||||
|
||||
using (var tree = TreeNode("Mods"))
|
||||
{
|
||||
if (!tree)
|
||||
return;
|
||||
|
||||
using var table = Table("##DebugModsTable", 3, ImGuiTableFlags.SizingFixedFit);
|
||||
if (!table)
|
||||
return;
|
||||
|
||||
var lastIndex = -1;
|
||||
foreach (var mod in _modManager)
|
||||
{
|
||||
PrintValue(mod.Name, mod.Index.ToString("D5"));
|
||||
ImGui.TableNextColumn();
|
||||
var index = mod.Index;
|
||||
if (index != lastIndex + 1)
|
||||
ImGui.TextUnformatted("!!!");
|
||||
lastIndex = index;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawPerformanceTab()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue