【本地化】战斗内字体修改

dev_chengFeng
gaoxin 2021-03-05 14:55:44 +08:00
parent 99e373bda2
commit 0dcbc50496
2 changed files with 4 additions and 0 deletions

View File

@ -650,6 +650,9 @@ function UIManager.DoLanguageCheck(gameObject)
for i = 0, textArr.Length-1 do
local textStr=textArr[i].text
textArr[i].text=GetLanguageStrById(textStr)
if GetCurLanguage() == 2 and textArr[i].font and (string.find(textArr[i].font.name,"kaiu",1) or string.find(textArr[i].font.name,"FZJinLS",1)) then
textArr[i].font = Util.LoadFont()
end
end
local imageArr=gameObject:GetComponentsInChildren(typeof(UnityEngine.UI.Image),true);
for i = 0, imageArr.Length-1 do

View File

@ -897,6 +897,7 @@ function this.LoadAsset(path, battleSorting)
end
--
local go = poolManager:LoadAsset(path, PoolManager.AssetType.GameObject)
UIManager.DoLanguageCheck(go)
local layer = tonumber(go.name) or 0
battleSorting = battleSorting or BattleManager.GetBattleSorting()
Util.AddParticleSortLayer(go, battleSorting - layer)