24 lines
No EOL
697 B
C#
24 lines
No EOL
697 B
C#
#if FIX
|
|
using HarmonyLib;
|
|
using Il2Cpp;
|
|
using Il2CppTMPro;
|
|
using PvZ_Fusion_Translator.AssetStore;
|
|
using UnityEngine;
|
|
|
|
namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects
|
|
{
|
|
[HarmonyPatch(typeof(SaveMenuBtn))]
|
|
public static class SaveMenuBtn_Patch
|
|
{
|
|
[HarmonyPatch(nameof(SaveMenuBtn.OnMouseUpAsButton))]
|
|
[HarmonyPostfix]
|
|
private static void OnMouseUpAsButton(SaveMenuBtn __instance)
|
|
{
|
|
TMP_FontAsset fontAsset = FontStore.LoadTMPFont(Utils.Language.ToString());
|
|
|
|
__instance.theName.text = StringStore.TranslateText(__instance.theName.text);
|
|
__instance.theName.font = fontAsset;
|
|
}
|
|
}
|
|
}
|
|
#endif |