Merge branch 'cassidy'
This commit is contained in:
commit
8f5a7228f9
1 changed files with 5 additions and 2 deletions
|
|
@ -20,8 +20,11 @@ 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);
|
||||||
text.text = text.text.Replace("\n", " ");
|
if(text.gameObject.name.Contains("LevelName"))
|
||||||
text.font = fontAsset;
|
{
|
||||||
|
text.text = text.text.Replace("\n", " ");
|
||||||
|
}
|
||||||
|
text.font = fontAsset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue