Merge branch 'cassidy'
This commit is contained in:
commit
a8e3878114
3 changed files with 9 additions and 7 deletions
|
|
@ -76,11 +76,6 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
|
|||
|
||||
text.font = fontAsset;
|
||||
}
|
||||
|
||||
foreach(AbyssBuffWindow window in __instance.GetComponentsInChildren<AbyssBuffWindow>())
|
||||
{
|
||||
window.buffName.autoSizeTextContainer = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void LoadAbyssBuffData()
|
||||
|
|
|
|||
|
|
@ -32,9 +32,16 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
|
|||
foreach (TextMeshProUGUI titleText in __instance.titleText)
|
||||
{
|
||||
if (AbyssBuffMenu_Patch.abyssBuffData.ContainsKey(titleText.text))
|
||||
{
|
||||
if(titleText.name.Contains("shadow"))
|
||||
{
|
||||
titleText.text = Utils.RemoveColorTags(AbyssBuffMenu_Patch.abyssBuffData[titleText.text]);
|
||||
}
|
||||
else
|
||||
{
|
||||
titleText.text = AbyssBuffMenu_Patch.abyssBuffData[titleText.text];
|
||||
}
|
||||
}
|
||||
titleText.font = fontAsset;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects.ButtonObjects
|
|||
[HarmonyPatch(nameof(ExploreMakeSceneButton.Start))]
|
||||
public static void Start(ExploreMakeSceneButton __instance)
|
||||
{
|
||||
__instance.sceneText.text = StringStore.TranslateText(__instance.sceneText.text);
|
||||
__instance.sceneText.text = (StringStore.translationString.ContainsKey(__instance.sceneText.text + "_FS")) ? StringStore.TranslateText(__instance.sceneText.text + "_FS") : StringStore.TranslateText(__instance.sceneText.text);
|
||||
__instance.sceneText.font = FontStore.LoadTMPFont(Utils.Language.ToString());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue