【本地化】限时召唤英雄名省略
parent
ce0c4220a4
commit
01f5e2b65b
|
|
@ -402,7 +402,10 @@ function TimeLimitedCall:OnShow(_sortingOrder,_parent)
|
|||
local configinfo= ConfigManager.GetConfigDataByKey(ConfigName.HeroConfig, "Id", m.id)
|
||||
--LogGreen("configinfo.PropertyName:"..configinfo.PropertyName)
|
||||
Util.GetGameObject(tempGo,"icon"):GetComponent("Image").sprite=Util.LoadSprite(GetJobSpriteStrByJobNum(configinfo.PropertyName))
|
||||
Util.GetGameObject(tempGo,"name"):GetComponent("Text").text=GetLanguageStrById(GetLanguageStrById(configinfo.ReadingName))
|
||||
if GetCurLanguage() ~= 0 and LengthString(GetLanguageStrById(GetLanguageStrById(configinfo.ReadingName))) > 6 then
|
||||
Util.GetGameObject(tempGo,"name"):GetComponent("Text").text = SubString(GetLanguageStrById(GetLanguageStrById(configinfo.ReadingName)),5).."..."
|
||||
-- Util.GetGameObject(tempGo,"name"):GetComponent("Text").text=GetLanguageStrById(GetLanguageStrById(configinfo.ReadingName))
|
||||
end
|
||||
if activityType[activityId].bg == "Bg1" then
|
||||
SetTextVerTial(Util.GetGameObject(tempGo,"name"),actTypePos[n],"MiddleLeft",1)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue