【本地化】战斗内字体修改
parent
99e373bda2
commit
0dcbc50496
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue