SHA256
Hide Win Texts And Detailed Results During Render
This commit is contained in:
2 files changed
+59
No files matched your search
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user