Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ContentAPI/Patches/Fixes/DebugUIHandlerPatch.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace ContentAPI.Patches.Fixes
{
#pragma warning disable SA1313
#pragma warning disable SA1402
using HarmonyLib;
using UnityEngine;
using Zorro.Core.CLI;

/// <summary>
/// Patch for adding back the debug ui.
/// </summary>
[HarmonyPatch(typeof(DebugUIHandler), "Update")]
internal class DebugUIHandlerPatch
{
private static void Postfix(DebugUIHandler __instance)
{
if (Input.GetKeyDown(KeyCode.F1))
{
if (__instance.IsOpen)
__instance.Hide();
else
__instance.Show();
}
}
}
}