【抽卡修改】提交

dev_chengFeng
zhangqiang 2020-12-26 17:19:50 +08:00
parent 26778992fa
commit a90dc5ff6b
2 changed files with 68009 additions and 67863 deletions

View File

@ -52,7 +52,8 @@ function SingleRecruitPanel:InitComponent()
this.info=Util.GetGameObject(self.gameObject,"rolePanel/rolePanel1/Panel/Info") this.info=Util.GetGameObject(self.gameObject,"rolePanel/rolePanel1/Panel/Info")
this.infoTitleBg=Util.GetGameObject(this.info,"TitleBg") this.infoTitleBg=Util.GetGameObject(this.info,"TitleBg")
this.infoTitle=Util.GetGameObject(this.infoTitleBg,"Title"):GetComponent("Text") this.infoTitle=Util.GetGameObject(this.infoTitleBg,"Title"):GetComponent("Text")
this.infoBody=Util.GetGameObject(this.info,"Body"):GetComponent("Text") this.infoBody=Util.GetGameObject(this.info,"BodyBg/Viewport/Body"):GetComponent("Text")
this.infoBodyGo=Util.GetGameObject(this.info,"BodyBg")
end end
--绑定事件(用于子类重写) --绑定事件(用于子类重写)
@ -234,7 +235,7 @@ function SingleRecruitPanel:UpdataPanelData(_heroData)
this.UI_Effect_choukaR:SetActive(heroStaticData.Star == 3 or heroStaticData.Star == 2 or heroStaticData.Star == 1) this.UI_Effect_choukaR:SetActive(heroStaticData.Star == 3 or heroStaticData.Star == 2 or heroStaticData.Star == 1)
--指定星级开启info --指定星级开启info
this.info:SetActive(heroStaticData.Star == 5 or heroStaticData.Star == 4) this.info:SetActive(heroStaticData.Star == 5 or heroStaticData.Star == 4)
this.infoBody.gameObject:SetActive(heroStaticData.Star == 5) this.infoBodyGo:SetActive(heroStaticData.Star == 5)
this.infoTitle.text=heroStaticData.HeroLocationDesc1 this.infoTitle.text=heroStaticData.HeroLocationDesc1
if heroStaticData.Star == 5 then if heroStaticData.Star == 5 then
local t={} local t={}
@ -242,11 +243,14 @@ function SingleRecruitPanel:UpdataPanelData(_heroData)
--获取几星激活数据 --获取几星激活数据
for i = 1, #heroStaticData.OpenPassiveSkillRules do for i = 1, #heroStaticData.OpenPassiveSkillRules do
if heroStaticData.OpenPassiveSkillRules[i][1] == 2 then if heroStaticData.OpenPassiveSkillRules[i][1] == 2 then
local d = {} local passiveSkillConfig = passiveSkillConfig[heroStaticData.OpenPassiveSkillRules[i][3]]
d.passiveSkillConfig = passiveSkillConfig[heroStaticData.OpenPassiveSkillRules[i][3]] if passiveSkillConfig and passiveSkillLogicConfig[passiveSkillConfig.Id].Judge == 1 and string.len(passiveSkillConfig.Desc) > 1 then
d.OpenPassiveSkillRules = heroStaticData.OpenPassiveSkillRules[i] local d = {}
d.titleStr = "<size=34><color=#5AC383>"..NumToSimplenessFont[heroRankupConfig[heroStaticData.OpenPassiveSkillRules[i][2]].Phase[2]] .. Language[11767] d.passiveSkillConfig = passiveSkillConfig
table.insert(upStarSkillDataList,d) d.OpenPassiveSkillRules = heroStaticData.OpenPassiveSkillRules[i]
d.titleStr = "<size=34><color=#5AC383>"..NumToSimplenessFont[heroRankupConfig[heroStaticData.OpenPassiveSkillRules[i][2]].Phase[2]] .. Language[11767]
table.insert(upStarSkillDataList,d)
end
end end
end end
--数据插入t --数据插入t