SHA256
26 lines
780 B
C#
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;
|
|
}
|
|
}
|
|
} |