diff --git a/MelonLoader/Patches/GameObjects/ExploreMenu_Patch.cs b/MelonLoader/Patches/GameObjects/ExploreMenu_Patch.cs index 0a3dc9b..78a114a 100644 --- a/MelonLoader/Patches/GameObjects/ExploreMenu_Patch.cs +++ b/MelonLoader/Patches/GameObjects/ExploreMenu_Patch.cs @@ -18,10 +18,15 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects foreach (TextMeshProUGUI txt in __instance.GetComponentsInChildren()) { txt.text = StringStore.TranslateText(txt.text); - if(txt.name.Contains("Text (TMP)")) + } + + Transform randomLevelTextTransform = __instance.transform.FindChild("RandomLevel"); + foreach(TextMeshProUGUI txt in randomLevelTextTransform.GetComponentsInChildren()) + { + if (txt.name.Contains("Text (TMP)")) { txt.autoSizeTextContainer = true; - if(txt.name == "Text (TMP)") + if (txt.name == "Text (TMP)") { txt.transform.localPosition = new Vector3(94.4225f, -45.1565f, 0f); }