diff --git a/MelonLoader/Patches/GameObjects/ButtonObjects/AbyssButton_Patch.cs b/MelonLoader/Patches/GameObjects/ButtonObjects/AbyssButton_Patch.cs deleted file mode 100644 index cd558ff..0000000 --- a/MelonLoader/Patches/GameObjects/ButtonObjects/AbyssButton_Patch.cs +++ /dev/null @@ -1,26 +0,0 @@ -using HarmonyLib; -using Il2Cpp; -using Il2CppTMPro; -using PvZ_Fusion_Translator.AssetStore; -using UnityEngine; - -namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects -{ - // [HarmonyPatch(typeof(AbyssBuffButton))] - // public static class AbyssButton_Patch - // { - // [HarmonyPatch(nameof(AbyssBuffButton.Start))] - // [HarmonyPostfix] - // private static void Start(AbyssBuffButton __instance) - // { - // StringStore.TranslateTextTransform(__instance.transform, true); - // Transform parentTransform = __instance.transform.parent.transform; - //if (__instance.name == "Goback") - //{ - // Transform backgroundTransform = parentTransform.Find("Background"); - // backgroundTransform.Find("Name").GetComponent().autoSizeTextContainer = true; - // backgroundTransform.Find("Shadow").GetComponent().autoSizeTextContainer = true; - //} - // } - // } -} diff --git a/MelonLoader/Patches/Managers/TravelMenuMgr_Patch.cs b/MelonLoader/Patches/Managers/TravelMenuMgr_Patch.cs deleted file mode 100644 index 2f873c0..0000000 --- a/MelonLoader/Patches/Managers/TravelMenuMgr_Patch.cs +++ /dev/null @@ -1,51 +0,0 @@ -using HarmonyLib; -using Il2Cpp; -using Il2CppTMPro; -using PvZ_Fusion_Translator.AssetStore; - -namespace PvZ_Fusion_Translator.Patches.Managers -{ - //[HarmonyPatch(typeof(TravelMenuMgr))] - //public static class TravelMenuMgr_Patch - //{ - // [HarmonyPatch(nameof(TravelMenuMgr.Start))] - // [HarmonyPostfix] - // private static void Start(TravelMenuMgr __instance) - // { - // foreach(TextMeshProUGUI text in __instance.textMesh) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // foreach(TextMeshProUGUI text in __instance.textMeshShadow) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // } - // [HarmonyPatch(nameof(TravelMenuMgr.SetText))] - // [HarmonyPostfix] - // private static void SetText(TravelMenuMgr __instance) - // { - // foreach(TextMeshProUGUI text in __instance.textMesh) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // foreach(TextMeshProUGUI text in __instance.textMeshShadow) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // } - // [HarmonyPatch(nameof(TravelMenuMgr.SetRichText), [typeof(int), typeof(int), typeof(TextMeshProUGUI), typeof(string)])] - // [HarmonyPostfix] - // private static void SetRichText(TravelMenuMgr __instance) - // { - // foreach(TextMeshProUGUI text in __instance.textMesh) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // foreach(TextMeshProUGUI text in __instance.textMeshShadow) - // { - // text.text = StringStore.TranslateText(text.text); - // } - // } - //} -} diff --git a/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj b/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj index 674030e..5d5ad89 100644 --- a/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj +++ b/MelonLoader/PvZ Fusion Translator [MelonLoader].csproj @@ -449,7 +449,6 @@ - @@ -495,7 +494,6 @@ -