【本地化】限时召唤英雄名省略

dev_chengFeng
DESKTOP-98AVA47\Administrator 2021-01-29 11:15:36 +08:00
parent ce0c4220a4
commit 01f5e2b65b
1 changed files with 4 additions and 1 deletions

View File

@ -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