From 0a506abe2a738e68f327f0354e383dfca35dbe30 Mon Sep 17 00:00:00 2001 From: Nero Dynamo Date: Sat, 3 May 2025 15:06:26 +0800 Subject: [PATCH] Added new Back to Index button for Adventure: Snow | Forgot about BepInEx --- .../GameObjects/ButtonObjects/Advanture_Btn_Patch.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BepInEx/Patches/GameObjects/ButtonObjects/Advanture_Btn_Patch.cs b/BepInEx/Patches/GameObjects/ButtonObjects/Advanture_Btn_Patch.cs index a4db226..04ac110 100644 --- a/BepInEx/Patches/GameObjects/ButtonObjects/Advanture_Btn_Patch.cs +++ b/BepInEx/Patches/GameObjects/ButtonObjects/Advanture_Btn_Patch.cs @@ -94,6 +94,14 @@ namespace PvZ_Fusion_Translator__BepInEx_.Patches.GameObjects.ButtonObjects StringStore.TranslateTextTransform(pageScaryPotTransform.Find("Nextpage")); StringStore.TranslateTextTransform(pageScaryPotTransform.Find("LastPage")); } + + Transform pageNewAdvantureLevelTransform = levelTransform.transform.Find("PageNewAdvantureLevel"); + if (pageNewAdvantureLevelTransform != null) + { + StringStore.TranslateTextTransform(pageNewAdvantureLevelTransform.Find("BackToIndex")); + StringStore.TranslateTextTransform(pageNewAdvantureLevelTransform.Find("Nextpage")); + StringStore.TranslateTextTransform(pageNewAdvantureLevelTransform.Find("LastPage")); + } } StringStore.TranslateTextTransform(parentTransform.Find("CameraSize"));