22 lines
No EOL
734 B
C#
22 lines
No EOL
734 B
C#
using HarmonyLib;
|
|
using TMPro;
|
|
using PvZ_Fusion_Translator__BepInEx_.AssetStore;
|
|
using static PvZ_Fusion_Translator__BepInEx_.Patches.Managers.TravelMgr_Patch;
|
|
using UnityEngine;
|
|
|
|
namespace PvZ_Fusion_Translator__BepInEx_.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 = translatedTravelBuffs[buffLinks[button.buffType]][button.buffIndex];
|
|
}
|
|
}
|
|
}
|
|
} |