SHA256
Hide Win Texts And Detailed Results During Render
This commit is contained in:
2 files changed
+59
No files matched your search
@@ -41,4 +41,38 @@ public static class scrControllerPatch
|
||||
{
|
||||
return !RenderManager.IsActive;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch("OnLandOnPortal")]
|
||||
public static void PreventWinTextsPostfix(scrController __instance)
|
||||
{
|
||||
if (!RenderManager.IsActive || __instance == null) return;
|
||||
|
||||
if (__instance.txtCongrats)
|
||||
{
|
||||
__instance.txtCongrats.text = string.Empty;
|
||||
__instance.txtCongrats.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
if (__instance.txtAprilCongrats)
|
||||
{
|
||||
__instance.txtAprilCongrats.text = string.Empty;
|
||||
__instance.txtAprilCongrats.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
if (__instance.txtAllStrictClear)
|
||||
{
|
||||
__instance.txtAllStrictClear.text = string.Empty;
|
||||
__instance.txtAllStrictClear.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
if (__instance.detailedResults)
|
||||
{
|
||||
__instance.detailedResults.enabled = false;
|
||||
if (__instance.detailedResults.gameObject != null)
|
||||
{
|
||||
__instance.detailedResults.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user