small almanac fix
This commit is contained in:
parent
ef1ba3f8bc
commit
e42d7a12a1
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
|
|||
text.fontSizeMax = 21;
|
||||
}
|
||||
|
||||
__instance.showedPlantIntroduce.text = Utils.RemoveSizeTags(plantInfo.info) + "\n\n" + Utils.RemoveSizeTags(plantInfo.introduce) + "\n" + Utils.RemoveSizeTags(plantInfo.cost) + "\n\n";
|
||||
char[] toTrim = Environment.NewLine.ToCharArray();
|
||||
__instance.showedPlantIntroduce.text = Utils.RemoveSizeTags(plantInfo.info) + "\n\n" + Utils.RemoveSizeTags(plantInfo.introduce) + "\n\n" + Utils.RemoveSizeTags(plantInfo.cost).TrimStart(toTrim) + "\n\n";
|
||||
__instance.showedPlantIntroduce.font = fontAsset;
|
||||
__instance.showedPlantIntroduce.margin = new Vector4(6, 2, 12, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue