Merge branch 'cassidy'

This commit is contained in:
SillyStar-Github 2025-11-16 15:33:44 -05:00
commit 8f5a7228f9

View file

@ -20,7 +20,10 @@ namespace PvZ_Fusion_Translator.Patches.Managers
{ {
string originalKey = StringStore.translationString.FirstOrDefault(x => x.Value.Replace("\n", " ") == text.text).Key; string originalKey = StringStore.translationString.FirstOrDefault(x => x.Value.Replace("\n", " ") == text.text).Key;
text.text = (StringStore.translationString.ContainsKey(originalKey + "_MG")) ? StringStore.TranslateText(originalKey + "_MG") : StringStore.TranslateText(text.text); text.text = (StringStore.translationString.ContainsKey(originalKey + "_MG")) ? StringStore.TranslateText(originalKey + "_MG") : StringStore.TranslateText(text.text);
if(text.gameObject.name.Contains("LevelName"))
{
text.text = text.text.Replace("\n", " "); text.text = text.text.Replace("\n", " ");
}
text.font = fontAsset; text.font = fontAsset;
} }
} }