small almanac fix

This commit is contained in:
SillyStar-Github 2025-12-27 18:07:30 -05:00
parent ef1ba3f8bc
commit e42d7a12a1

View file

@ -49,7 +49,8 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
text.fontSizeMax = 21; 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.font = fontAsset;
__instance.showedPlantIntroduce.margin = new Vector4(6, 2, 12, 0); __instance.showedPlantIntroduce.margin = new Vector4(6, 2, 12, 0);