Update AlmanacPlantBank_Patch.cs
This commit is contained in:
parent
047ea001f0
commit
58cdb6841a
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Il2Cpp;
|
using Il2Cpp;
|
||||||
using Il2CppTMPro;
|
using Il2CppTMPro;
|
||||||
|
using MelonLoader;
|
||||||
using PvZ_Fusion_Translator.AssetStore;
|
using PvZ_Fusion_Translator.AssetStore;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using static PvZ_Fusion_Translator.FileLoader;
|
using static PvZ_Fusion_Translator.FileLoader;
|
||||||
|
|
@ -67,10 +68,14 @@ namespace PvZ_Fusion_Translator.Patches.Managers
|
||||||
{
|
{
|
||||||
component.text = plantInfo.info + "\n\n" + plantInfo.introduce;
|
component.text = plantInfo.info + "\n\n" + plantInfo.introduce;
|
||||||
component.overflowMode = TextOverflowModes.Page;
|
component.overflowMode = TextOverflowModes.Page;
|
||||||
|
component.rectTransform.sizeDelta = new Vector2(component.rectTransform.sizeDelta.x, 58.917f);
|
||||||
|
|
||||||
component2.text = plantInfo.name;
|
component2.text = plantInfo.name;
|
||||||
component2.autoSizeTextContainer = true;
|
component2.autoSizeTextContainer = true;
|
||||||
|
|
||||||
component3.text = Utils.RemoveColorTags(plantInfo.name);
|
component3.text = Utils.RemoveColorTags(plantInfo.name);
|
||||||
component3.autoSizeTextContainer = true;
|
component3.autoSizeTextContainer = true;
|
||||||
|
|
||||||
component4.text = plantInfo.cost;
|
component4.text = plantInfo.cost;
|
||||||
|
|
||||||
if (hasAlmanacFont)
|
if (hasAlmanacFont)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue