PVZFusionTranslation/MelonLoader/Patches/Managers/CustomLevelShower_Patch.cs
SillyStar-Github b7014a341f root rewrite
2025-04-19 13:11:08 -04:00

23 lines
No EOL
584 B
C#

#if FIX
using HarmonyLib;
using Il2Cpp;
using PvZ_Fusion_Translator.AssetStore;
using UnityEngine;
namespace PvZ_Fusion_Translator.Patches.Managers
{
[HarmonyPatch(typeof(CustomLevelShower))]
public static class CustomLevelShower_Patch
{
[HarmonyPatch(nameof(CustomLevelShower.Show))]
[HarmonyPostfix]
private static void Show(CustomLevelShower __instance)
{
foreach (Transform transform in __instance.pages)
{
StringStore.TranslateTextTransform(transform);
}
}
}
}
#endif