mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add IPC to debug tab.
This commit is contained in:
parent
d8e4c5b802
commit
e2aa141395
1 changed files with 35 additions and 0 deletions
|
|
@ -6,7 +6,9 @@ using System.Numerics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Dalamud.Game.ClientState.Objects.Types;
|
using Dalamud.Game.ClientState.Objects.Types;
|
||||||
|
using Dalamud.Plugin;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
using Penumbra.Api;
|
||||||
using Penumbra.GameData.Enums;
|
using Penumbra.GameData.Enums;
|
||||||
using Penumbra.GameData.Util;
|
using Penumbra.GameData.Util;
|
||||||
using Penumbra.Interop;
|
using Penumbra.Interop;
|
||||||
|
|
@ -288,6 +290,37 @@ namespace Penumbra.UI
|
||||||
ImGui.EndTable();
|
ImGui.EndTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DrawDebugTabIpc()
|
||||||
|
{
|
||||||
|
|
||||||
|
if( !ImGui.CollapsingHeader( "IPC##Debug" ) )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var ipc = _penumbra.Ipc;
|
||||||
|
ImGui.Text($"API Version: {ipc.Api.ApiVersion}" );
|
||||||
|
ImGui.Text("Available subscriptions:" );
|
||||||
|
ImGui.Indent();
|
||||||
|
if (ipc.ProviderApiVersion != null)
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderApiVersion );
|
||||||
|
if( ipc.ProviderRedrawName != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderRedrawName );
|
||||||
|
if( ipc.ProviderRedrawObject != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderRedrawObject );
|
||||||
|
if( ipc.ProviderRedrawAll != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderRedrawAll );
|
||||||
|
if( ipc.ProviderResolveDefault != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderResolveDefault );
|
||||||
|
if( ipc.ProviderResolveCharacter != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderResolveCharacter );
|
||||||
|
if( ipc.ProviderChangedItemTooltip != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderChangedItemTooltip );
|
||||||
|
if( ipc.ProviderChangedItemClick != null )
|
||||||
|
ImGui.Text( PenumbraIpc.LabelProviderChangedItemClick );
|
||||||
|
ImGui.Unindent();
|
||||||
|
}
|
||||||
|
|
||||||
private void DrawDebugTab()
|
private void DrawDebugTab()
|
||||||
{
|
{
|
||||||
if( !ImGui.BeginTabItem( "Debug Tab" ) )
|
if( !ImGui.BeginTabItem( "Debug Tab" ) )
|
||||||
|
|
@ -303,6 +336,8 @@ namespace Penumbra.UI
|
||||||
ImGui.NewLine();
|
ImGui.NewLine();
|
||||||
DrawDebugTabTempFiles();
|
DrawDebugTabTempFiles();
|
||||||
ImGui.NewLine();
|
ImGui.NewLine();
|
||||||
|
DrawDebugTabIpc();
|
||||||
|
ImGui.NewLine();
|
||||||
|
|
||||||
ImGui.EndTabItem();
|
ImGui.EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue