From dbbd17758908afb24a60320ecec71446902a830e Mon Sep 17 00:00:00 2001 From: Clansty Date: Sun, 1 Dec 2024 12:22:39 +0800 Subject: [PATCH] [+] HideMask also hide Monitor_Mask --- AquaMai.Mods/Fancy/HideMask.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/AquaMai.Mods/Fancy/HideMask.cs b/AquaMai.Mods/Fancy/HideMask.cs index 013ee7ab..19a98415 100644 --- a/AquaMai.Mods/Fancy/HideMask.cs +++ b/AquaMai.Mods/Fancy/HideMask.cs @@ -1,5 +1,6 @@ using AquaMai.Config.Attributes; using HarmonyLib; +using Monitor; using UnityEngine; namespace AquaMai.Mods.Fancy; @@ -15,4 +16,18 @@ public class HideMask { GameObject.Find("Mask").SetActive(false); } -} + + [HarmonyPostfix] + [HarmonyPatch(typeof(MonitorBackgroundTownController), "Awake")] + public static void Awake(GameObject ____bgObject) + { + try + { + ____bgObject.transform.Find("BG").Find("Monitor_Mask").gameObject.SetActive(false); + } + catch + { + // ignored + } + } +} \ No newline at end of file