diff --git a/.gitignore b/.gitignore index b70a132..371124c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /MelonLoader/obj /BepInEx/obj/Debug/net6.0 /BepInEx/obj +/BepInEx/bin/ReleaseMulti/net6.0 diff --git a/BepInEx/Patches/GameObjects/ButtonObjects/EveBtn_Patch.cs b/BepInEx/Patches/GameObjects/ButtonObjects/EveBtn_Patch.cs deleted file mode 100644 index 146ac39..0000000 --- a/BepInEx/Patches/GameObjects/ButtonObjects/EveBtn_Patch.cs +++ /dev/null @@ -1,42 +0,0 @@ -using HarmonyLib; - -using TMPro; -using PvZ_Fusion_Translator__BepInEx_.AssetStore; -using UnityEngine; - -namespace PvZ_Fusion_Translator__BepInEx_.Patches.GameObjects.ButtonObjects -{ - [HarmonyPatch(typeof(EveBtn))] - public static class EveBtn_Patch - { - [HarmonyPostfix] - [HarmonyPatch(nameof(EveBtn.OnMouseUp))] - private static void OnMouseUp(EveBtn __instance) - { - Transform sceneText = __instance.transform.FindChild("text"); - if(sceneText != null) - { - TextMeshProUGUI sceneTextTMP = sceneText.transform.GetComponent(); - if(sceneTextTMP != null) - { - sceneTextTMP.text = StringStore.TranslateText(sceneTextTMP.text); - } - } - Transform sceneTextShadow = sceneText.transform.FindChild("text2"); - if(sceneTextShadow != null) - { - TextMeshProUGUI sceneTextShadowTMP = sceneTextShadow.transform.GetComponent(); - if (sceneTextShadowTMP != null) - { - sceneTextShadowTMP.text = StringStore.TranslateText(sceneTextShadowTMP.text); - } - } - - if (__instance.name.Equals("Balanced")) - { - __instance.gameObject.SetActive(false); - __instance.gameObject.SetActive(true); - } - } - } -} \ No newline at end of file diff --git a/BepInEx/PvZ Fusion Translator [BepInEx].csproj b/BepInEx/PvZ Fusion Translator [BepInEx].csproj index e47b5b0..0971e34 100644 --- a/BepInEx/PvZ Fusion Translator [BepInEx].csproj +++ b/BepInEx/PvZ Fusion Translator [BepInEx].csproj @@ -149,7 +149,6 @@ -