PVZFusionTranslation/MelonLoader/Patches/GameObjects/TravelBuffMenu_Patch.cs

24 lines
No EOL
708 B
C#

using HarmonyLib;
using Il2Cpp;
using Il2CppTMPro;
using PvZ_Fusion_Translator.AssetStore;
using static PvZ_Fusion_Translator.Patches.Managers.TravelMgr_Patch;
using UnityEngine;
using MelonLoader;
namespace PvZ_Fusion_Translator.Patches.GameObjects
{
[HarmonyPatch(typeof(TravelBuffMenu))]
public static class TravelBuffMenu_Patch
{
[HarmonyPatch(nameof(TravelBuffMenu.RefeshOptions))]
[HarmonyPostfix]
public static void RefeshOptions(TravelBuffMenu __instance)
{
foreach(TravelBuffOptionButton button in __instance.options)
{
TravelBuffOptionButton_Patch.TranslateOptionButton(button);
}
}
}
}