From d643b15168432c1a97685b4091ec128c0ff0cd28 Mon Sep 17 00:00:00 2001 From: burninrubber0 Date: Wed, 15 Apr 2026 19:39:31 -0400 Subject: [PATCH] Re-add DebugHelper --- BaseHandlers/BaseHandlers.csproj | 1 + BaseHandlers/InstanceListEditor.cs | 3 ++- BundleManager/BundleManager.csproj | 1 + BundleManager/MainForm.cs | 7 +++++++ WorldCollisionHandler/WorldColEditor.cs | 4 +++- WorldCollisionHandler/WorldCollisionHandler.csproj | 1 + 6 files changed, 15 insertions(+), 2 deletions(-) diff --git a/BaseHandlers/BaseHandlers.csproj b/BaseHandlers/BaseHandlers.csproj index cc9be1a..b6f7850 100644 --- a/BaseHandlers/BaseHandlers.csproj +++ b/BaseHandlers/BaseHandlers.csproj @@ -15,6 +15,7 @@ + \ No newline at end of file diff --git a/BaseHandlers/InstanceListEditor.cs b/BaseHandlers/InstanceListEditor.cs index 9b108a8..d22aefe 100644 --- a/BaseHandlers/InstanceListEditor.cs +++ b/BaseHandlers/InstanceListEditor.cs @@ -1,5 +1,6 @@ using BundleFormat; using BundleUtilities; +using DebugHelper; using ModelViewer; using ModelViewer.SceneData; using PluginAPI; @@ -237,7 +238,7 @@ private void RenderToolStripMenuItem_Click(object sender, EventArgs e) private void DebugToolStripMenuItem_Click(object sender, EventArgs e) { - + DebugUtil.ShowDebug(this, InstanceList); } private void LstMain_SizeChanged(object sender, EventArgs e) diff --git a/BundleManager/BundleManager.csproj b/BundleManager/BundleManager.csproj index 8901fab..f5671ab 100644 --- a/BundleManager/BundleManager.csproj +++ b/BundleManager/BundleManager.csproj @@ -35,6 +35,7 @@ + diff --git a/BundleManager/MainForm.cs b/BundleManager/MainForm.cs index 012c138..1e0e699 100644 --- a/BundleManager/MainForm.cs +++ b/BundleManager/MainForm.cs @@ -6,6 +6,7 @@ using System.Windows.Forms; using BundleFormat; using BundleUtilities; +using DebugHelper; using PluginAPI; namespace BundleManager @@ -442,9 +443,15 @@ public void EditEntry(int index, bool forceHex = false, bool forceDebug = false) else { loader.Hide(); + if (forceDebug) + { + DebugUtil.ShowDebug(this, data); + } IEntryEditor editor = data.GetEditor(entry); if (editor != null) editor.ShowDialog(this); + else + DebugUtil.ShowDebug(this, data); if (ForceOnlySpecificEntry) Environment.Exit(0); } diff --git a/WorldCollisionHandler/WorldColEditor.cs b/WorldCollisionHandler/WorldColEditor.cs index 1a6ad39..106fd83 100644 --- a/WorldCollisionHandler/WorldColEditor.cs +++ b/WorldCollisionHandler/WorldColEditor.cs @@ -1,4 +1,5 @@ using BundleUtilities; +using DebugHelper; using PluginAPI; using System; using System.ComponentModel; @@ -84,7 +85,8 @@ private void closeToolStripMenuItem_Click(object sender, EventArgs e) private void debugInfoToolStripMenuItem_Click(object sender, EventArgs e) { - + if (_poly != null) + DebugUtil.ShowDebug(this, _poly); } private void removeWreckSurfacesToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/WorldCollisionHandler/WorldCollisionHandler.csproj b/WorldCollisionHandler/WorldCollisionHandler.csproj index 1663cea..03df1bc 100644 --- a/WorldCollisionHandler/WorldCollisionHandler.csproj +++ b/WorldCollisionHandler/WorldCollisionHandler.csproj @@ -14,6 +14,7 @@ + \ No newline at end of file