Update ExploreMenu_Patch.cs
This commit is contained in:
parent
17d233d8d1
commit
f6b2ede188
1 changed files with 7 additions and 2 deletions
|
|
@ -18,6 +18,11 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
|
|||
foreach (TextMeshProUGUI txt in __instance.GetComponentsInChildren<TextMeshProUGUI>())
|
||||
{
|
||||
txt.text = StringStore.TranslateText(txt.text);
|
||||
}
|
||||
|
||||
Transform randomLevelTextTransform = __instance.transform.FindChild("RandomLevel");
|
||||
foreach(TextMeshProUGUI txt in randomLevelTextTransform.GetComponentsInChildren<TextMeshProUGUI>())
|
||||
{
|
||||
if (txt.name.Contains("Text (TMP)"))
|
||||
{
|
||||
txt.autoSizeTextContainer = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue