22 lines
No EOL
635 B
C#
22 lines
No EOL
635 B
C#
using HarmonyLib;
|
|
using Il2Cpp;
|
|
using Il2CppTMPro;
|
|
using PvZ_Fusion_Translator.AssetStore;
|
|
using UnityEngine;
|
|
|
|
namespace PvZ_Fusion_Translator.Patches.GameObjects
|
|
{
|
|
[HarmonyPatch(typeof(TravelBuffMenu))]
|
|
public static class TravelBuffMenu_Patch
|
|
{
|
|
[HarmonyPatch(nameof(TravelBuffMenu.RefeshOptions))]
|
|
[HarmonyPostfix]
|
|
private static void RefeshOptions(TravelBuffMenu __instance)
|
|
{
|
|
foreach(TravelBuffOptionButton button in __instance.options)
|
|
{
|
|
button.introduce.text = StringStore.TranslateText(button.introduce.text);
|
|
}
|
|
}
|
|
}
|
|
} |