Files
ADOFAIRenderer/Patch/ClassPatch/scrShowIfDebugPatch.cs
T
2026-05-21 11:38:31 +09:00

26 lines
780 B
C#

using System.Diagnostics.CodeAnalysis;
using ADOFAIRenderer.Component;
using HarmonyLib;
using UnityEngine;
using UnityEngine.UI;
namespace ADOFAIRenderer.Patch.ClassPatch
{
[HarmonyPatch(typeof(scrShowIfDebug))]
// ReSharper disable once InconsistentNaming
public static class scrShowIfDebugPatch
{
[HarmonyPostfix]
[HarmonyPatch("Update")]
[SuppressMessage("ReSharper", "InconsistentNaming")]
private static void IgnoreInput(Text ___txt, Color ___defaultColor)
{
if (!RenderMod.IsRendering) return;
___txt.text = "Rendering";
if (RenderManager.Countdown > 0) ___txt.text += $" in {RenderManager.Countdown}..";
___txt.color = ___defaultColor;
}
}
}