22 lines
641 B
C#
22 lines
641 B
C#
#if false
|
|
using HarmonyLib;
|
|
using PvZ_Fusion_Translator.AssetStore;
|
|
|
|
namespace PvZ_Fusion_Translator.Patches.Modes.Abyss;
|
|
|
|
[HarmonyPatch(typeof(AbyssStoreMenu))]
|
|
public static class AbyssStoreMenu_Patch
|
|
{
|
|
[HarmonyPatch(nameof(AbyssStoreMenu.Update)), HarmonyPostfix]
|
|
private static void Update(AbyssStoreMenu __instance)
|
|
{
|
|
var fontAsset = FontStore.LoadTMPFont(Utils.Language.ToString());
|
|
|
|
foreach (TextMeshProUGUI text in __instance.GetComponentsInChildren<TextMeshProUGUI>())
|
|
{
|
|
text.text = StringStore.TranslateText(text.text);
|
|
text.font = fontAsset;
|
|
}
|
|
}
|
|
}
|
|
#endif
|