点击技能切换修改

dev_chengFeng
jiaoyangna 2022-01-12 14:35:27 +08:00
parent bde65d0ecf
commit 0b4cfe3a74
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,7 @@ function RoleInfoLayout:InitComponent()
this.posInfo = Util.GetGameObject(this.posBtn,"PosInfo"):GetComponent("Text")
this.proTip = Util.GetGameObject(self.gameObject,"content/pro/tishi")
this.skillGrid=Util.GetGameObject(self.gameObject,"content/skill")
this.skillGridCanvas = this.skillGrid:GetComponent("Canvas")
this.selsectSkillImage=Util.GetGameObject(this.skillGrid,"selsectSkillImage")
this.skillList = {}
for i = 1,6 do
@ -189,6 +190,7 @@ function this.SkillInfoPopupClose(panelType, p)
if panelType == UIName.SkillInfoPopup and this.skillPanel == p then --监听到SkillInfoPopup关闭把层级设回去
this.selsectSkillImage:SetActive(false)
this.skillPanel = nil
this.skillGridCanvas.sortingOrder = this.sortingOrder + 1
end
end
@ -370,6 +372,7 @@ end
--单个技能显示
function this.UpdateHeroUpStarProUpSkillShow(skillGridGO,skillTabs,passiveSkills)
this.skillGridCanvas.sortingOrder = this.sortingOrder + 1
this.skillData = this.GetSkillsData()
for i = 1,math.max(#this.skillList,#this.skillData) do
this.skillList[i].icon.gameObject:GetComponent("Button").onClick:RemoveAllListeners()
@ -415,6 +418,7 @@ function this.UpdateHeroUpStarProUpSkillShow(skillGridGO,skillTabs,passiveSkills
local awakenSkillList = this.GetAwakenSkill()
this.skillPanel = UIManager.OpenPanel(UIName.SkillInfoPopup,this.skillData[i],1,10,maxLv,i,nil,GodSoulManager.GetGodSoulLv(curHeroData.dynamicId),awakenSkillList[i-2])
end
this.skillGridCanvas.sortingOrder = this.skillPanel.sortingOrder + 1
end)
end
end