diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua index a40bf3c7c2..10b69ba6c2 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoLayout.lua @@ -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