From 3bbdb73af74e6e46488b8775a131d7e0e4e67a8f Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Sun, 27 Apr 2025 07:26:49 -0400 Subject: [PATCH] Delete UIButton_Patch.cs --- .../ButtonObjects/UIButton_Patch.cs | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 MelonLoader/Patches/GameObjects/ButtonObjects/UIButton_Patch.cs diff --git a/MelonLoader/Patches/GameObjects/ButtonObjects/UIButton_Patch.cs b/MelonLoader/Patches/GameObjects/ButtonObjects/UIButton_Patch.cs deleted file mode 100644 index 5edfbfd..0000000 --- a/MelonLoader/Patches/GameObjects/ButtonObjects/UIButton_Patch.cs +++ /dev/null @@ -1,23 +0,0 @@ -using HarmonyLib; -using Il2Cpp; -using Il2CppTMPro; -using PvZ_Fusion_Translator.AssetStore; -using Unity.VisualScripting; -using UnityEngine; -using UnityEngine.UI; - -namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects -{ - [HarmonyPatch(typeof(UIButton))] - public static class UIButton_Patch - { - [HarmonyPatch(nameof(UIButton.Start))] - [HarmonyPostfix] - private static void Start(UIButton __instance) - { - TMP_FontAsset fontAsset = FontStore.LoadTMPFont(Utils.Language.ToString()); - Transform txtTransform = __instance.transform.FindChild("text"); - StringStore.TranslateTextTransform(txtTransform); - } - } -}