mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-17 04:57:43 +01:00
27 lines
810 B
C#
27 lines
810 B
C#
using Glamourer.Interop;
|
|
using Glamourer.Interop.Structs;
|
|
using Glamourer.State;
|
|
using OtterGui.Raii;
|
|
using Penumbra.GameData.Gui.Debug;
|
|
using Penumbra.GameData.Interop;
|
|
|
|
namespace Glamourer.Gui.Tabs.DebugTab;
|
|
|
|
public class RetainedStatePanel(StateManager _stateManager, ActorObjectManager _objectManager) : IGameDataDrawer
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|