Remove unused patch
This commit is contained in:
parent
7be9b8c514
commit
561bc81478
3 changed files with 1 additions and 43 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,3 +9,4 @@
|
||||||
/MelonLoader/obj
|
/MelonLoader/obj
|
||||||
/BepInEx/obj/Debug/net6.0
|
/BepInEx/obj/Debug/net6.0
|
||||||
/BepInEx/obj
|
/BepInEx/obj
|
||||||
|
/BepInEx/bin/ReleaseMulti/net6.0
|
||||||
|
|
|
||||||
|
|
@ -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<TextMeshProUGUI>();
|
|
||||||
if(sceneTextTMP != null)
|
|
||||||
{
|
|
||||||
sceneTextTMP.text = StringStore.TranslateText(sceneTextTMP.text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Transform sceneTextShadow = sceneText.transform.FindChild("text2");
|
|
||||||
if(sceneTextShadow != null)
|
|
||||||
{
|
|
||||||
TextMeshProUGUI sceneTextShadowTMP = sceneTextShadow.transform.GetComponent<TextMeshProUGUI>();
|
|
||||||
if (sceneTextShadowTMP != null)
|
|
||||||
{
|
|
||||||
sceneTextShadowTMP.text = StringStore.TranslateText(sceneTextShadowTMP.text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (__instance.name.Equals("Balanced"))
|
|
||||||
{
|
|
||||||
__instance.gameObject.SetActive(false);
|
|
||||||
__instance.gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -149,7 +149,6 @@
|
||||||
<Compile Include="Patches\Managers\AlmanacPlantBank_Patch.cs" />
|
<Compile Include="Patches\Managers\AlmanacPlantBank_Patch.cs" />
|
||||||
<Compile Include="Patches\Managers\DifficultyMgr_Patch.cs" />
|
<Compile Include="Patches\Managers\DifficultyMgr_Patch.cs" />
|
||||||
<Compile Include="Patches\Managers\EndlessMgr_Patch.cs" />
|
<Compile Include="Patches\Managers\EndlessMgr_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\ButtonObjects\EveBtn_Patch.cs" />
|
|
||||||
<Compile Include="Patches\GameObjects\GardenPlant_Patch.cs" />
|
<Compile Include="Patches\GameObjects\GardenPlant_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\Close_Patch.cs" />
|
<Compile Include="Patches\GameObjects\Close_Patch.cs" />
|
||||||
<Compile Include="Patches\GameObjects\CustomSettings_Patch.cs" />
|
<Compile Include="Patches\GameObjects\CustomSettings_Patch.cs" />
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue