Rework debug tab.

This commit is contained in:
Ottermandias 2023-12-13 16:46:14 +01:00
parent a04b7cd1db
commit 4b92eae723
31 changed files with 2450 additions and 1790 deletions

View file

@ -0,0 +1,26 @@
using System.Linq;
using Glamourer.Interop;
using Glamourer.Interop.Structs;
using Glamourer.State;
using OtterGui.Raii;
namespace Glamourer.Gui.Tabs.DebugTab;
public class RetainedStatePanel(StateManager _stateManager, ObjectManager _objectManager) : IDebugTabTree
{
public string Label
=> "Retained States (Inactive Actors)";
public bool Disabled
=> false;
public void Draw()
{
foreach (var (identifier, state) in _stateManager.Where(kvp => !_objectManager.ContainsKey(kvp.Key)))
{
using var t = ImRaii.TreeNode(identifier.ToString());
if (t)
ActiveStatePanel.DrawState(_stateManager, ActorData.Invalid, state);
}
}
}