图片提交,巅峰赛竞技守卫名字提交

dev_chengFeng
jiaoyangna 2021-03-12 12:08:24 +08:00
parent 5acc67ead5
commit 2a6a2e69da
3 changed files with 12 additions and 6 deletions

View File

@ -1876,8 +1876,10 @@ function JingJiShouWeiToEn(_str)
if not _str or _str == "" then
return ""
end
LogGreen("input _str:".._str)
if _str == "竞技守卫" then
return GetLanguageStrById(_str)
end
LogGreen("return str:".._str)
return _str
end

View File

@ -458,7 +458,9 @@ function this.RequestEliminationDataMerge(EliminationData)
local singledata = {}--newEliminationDataV[1]
-- singledata.dataList = newEliminationDataV
singledata.attackInfo = newEliminationDataV[1].attackInfo
singledata.attackInfo.name = JingJiShouWeiToEn(newEliminationDataV[1].attackInfo.name)
singledata.defInfo = newEliminationDataV[1].defInfo
singledata.defInfo.name = JingJiShouWeiToEn(newEliminationDataV[1].defInfo.name)
singledata.fightResult = newEliminationDataV[1].fightResult
singledata.id = newEliminationDataV[1].id
singledata.roundTImes = newEliminationDataV[1].roundTImes
@ -785,6 +787,7 @@ function this.RequestRankData(page,func)
for i, v in ipairs(msg.rankInfos) do
if v.personInfo.rank<=8 then
-- LogGreen("前八名数据 "..length+i.." uid "..v.personInfo.uid)
v.personInfo.name = JingJiShouWeiToEn(v.personInfo.name)
this.rankData[length+i]=v.personInfo
end
end

View File

@ -310,8 +310,8 @@ local activityType = {
bg = "Bg2",
hero = {
[1]={name="Bg2/hero1",id=10007,hero="x_xuanjimiaosuan_shenjiang1"}, --唐僧
[2]={name="Bg2/hero2",id=10040,hero="c_ygsj_kuang01"}, --孙悟空
[3]={name="Bg2/hero3",id=10023,hero="c_ccfy_kuang03"}, --通天教主
[2]={name="Bg2/hero2",id=10040,hero="c_ygsj_kuang01"}, --杨戬
[3]={name="Bg2/hero3",id=10023,hero="c_ccfy_kuang03"}, --孙悟空
},
title = "x_xuanjimiaosuan_zi_zh",
helptype = HELP_TYPE.TimeLimitedCall
@ -320,9 +320,9 @@ local activityType = {
[4327] = {
bg = "Bg2",
hero = {
[1]={name="Bg2/hero1",id=10011,hero="y_yunchouweiwo_shenjiang1"}, --雷震子
[2]={name="Bg2/hero2",id=10090,hero="x_xianglongfuhu_shenjiang22"}, --阎罗王
[3]={name="Bg2/hero3",id=10014,hero="x_xianglongfuhu_shenjiang33"}, --哪吒
[1]={name="Bg2/hero1",id=10014,hero="s_shibukedang_shenjiang1"}, --哪吒
[2]={name="Bg2/hero2",id=10011,hero="y_yunchouweiwo_shenjiang1"}, --雷震子
[3]={name="Bg2/hero3",id=10090,hero="x_xianglongfuhu_shenjiang22"}, --阎罗王
},
title = "x_xianglongfuhu_zi_zh",
helptype = HELP_TYPE.TimeLimitedCall
@ -596,7 +596,8 @@ function TimeLimitedCall:OnShow(_sortingOrder,_parent)
table.sort(UpHero,function(a,b) return a.Reward[1] < b.Reward[1] end)
for n,m in ipairs(activityType[activityId].hero) do
local tempGo = Util.GetGameObject(self.gameObject,m.name)
Util.GetGameObject(tempGo,"hero"):GetComponent("Image").sprite=Util.LoadSprite(m.hero)
local ima = Util.GetGameObject(tempGo,"hero"):GetComponent("Image")
ima.sprite=Util.LoadSprite(m.hero)
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))