From 3225f85fe40c298a0224f77bc3959d5514304ad7 Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Sun, 16 Nov 2025 20:42:38 -0500 Subject: [PATCH] i dont know these are some random fixes --- MelonLoader/Patches/GameObjects/AbyssBuffMenu_Patch.cs | 5 ----- .../Patches/GameObjects/AbyssSelectBuffWindow_Patch.cs | 9 ++++++++- .../ButtonObjects/ExploreMakeSceneButton_Patch.cs | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MelonLoader/Patches/GameObjects/AbyssBuffMenu_Patch.cs b/MelonLoader/Patches/GameObjects/AbyssBuffMenu_Patch.cs index 694ddb6..c9e53e7 100644 --- a/MelonLoader/Patches/GameObjects/AbyssBuffMenu_Patch.cs +++ b/MelonLoader/Patches/GameObjects/AbyssBuffMenu_Patch.cs @@ -76,11 +76,6 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects text.font = fontAsset; } - - foreach(AbyssBuffWindow window in __instance.GetComponentsInChildren()) - { - window.buffName.autoSizeTextContainer = true; - } } public static void LoadAbyssBuffData() diff --git a/MelonLoader/Patches/GameObjects/AbyssSelectBuffWindow_Patch.cs b/MelonLoader/Patches/GameObjects/AbyssSelectBuffWindow_Patch.cs index d369247..8af7930 100644 --- a/MelonLoader/Patches/GameObjects/AbyssSelectBuffWindow_Patch.cs +++ b/MelonLoader/Patches/GameObjects/AbyssSelectBuffWindow_Patch.cs @@ -33,7 +33,14 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects { if (AbyssBuffMenu_Patch.abyssBuffData.ContainsKey(titleText.text)) { - titleText.text = AbyssBuffMenu_Patch.abyssBuffData[titleText.text]; + if(titleText.name.Contains("shadow")) + { + titleText.text = Utils.RemoveColorTags(AbyssBuffMenu_Patch.abyssBuffData[titleText.text]); + } + else + { + titleText.text = AbyssBuffMenu_Patch.abyssBuffData[titleText.text]; + } } titleText.font = fontAsset; } diff --git a/MelonLoader/Patches/GameObjects/ButtonObjects/ExploreMakeSceneButton_Patch.cs b/MelonLoader/Patches/GameObjects/ButtonObjects/ExploreMakeSceneButton_Patch.cs index 1102c86..1e7e111 100644 --- a/MelonLoader/Patches/GameObjects/ButtonObjects/ExploreMakeSceneButton_Patch.cs +++ b/MelonLoader/Patches/GameObjects/ButtonObjects/ExploreMakeSceneButton_Patch.cs @@ -13,7 +13,7 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects [HarmonyPatch(nameof(ExploreMakeSceneButton.Start))] public static void Start(ExploreMakeSceneButton __instance) { - __instance.sceneText.text = StringStore.TranslateText(__instance.sceneText.text); + __instance.sceneText.text = (StringStore.translationString.ContainsKey(__instance.sceneText.text + "_FS")) ? StringStore.TranslateText(__instance.sceneText.text + "_FS") : StringStore.TranslateText(__instance.sceneText.text); __instance.sceneText.font = FontStore.LoadTMPFont(Utils.Language.ToString()); } }