using ADOFAIRenderer.Core; using HarmonyLib; namespace ADOFAIRenderer.Patch.Game; [HarmonyPatch(typeof(DetailedResults))] // ReSharper disable once InconsistentNaming public static class DetailedResultsPatch { [HarmonyPrefix] [HarmonyPatch("Show")] // ReSharper disable once InconsistentNaming public static bool PreventShow(DetailedResults __instance) { if (!RenderManager.IsActive) return true; if (__instance) { __instance.enabled = false; if (__instance.gameObject) __instance.gameObject.SetActive(false); } return false; } }