From fc38e204ced171171b84f0c4d74aec5d1fe64166 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 8 Nov 2021 15:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A3=AE=E7=BD=97=E5=B9=BB=E5=A2=83?= =?UTF-8?q?=E3=80=91=E6=A3=AE=E7=BD=97=E5=B9=BB=E5=A2=83=E7=A5=9E=E9=AD=82?= =?UTF-8?q?=E7=89=B9=E6=95=88=E7=A9=BF=E9=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Map/TrialMapPanel.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua b/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua index c48aef9c73..76bed3cd88 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua @@ -293,6 +293,11 @@ function this.OnPowerValueChange() end function this.OnSortingOrderChange() + if this.starGridList then + for _, starGrid in pairs(this.starGridList) do + Util.SetParticleSortLayer(starGrid,MapPanel.sortingOrder + 1) + end + end Util.AddParticleSortLayer(this.chufa, MapPanel.sortingOrder - orginLayer) orginLayer = MapPanel.sortingOrder end @@ -450,6 +455,8 @@ function TrialMapPanel:OnDestroy() this.spLoader:Destroy() ClearRedPointObject(RedPointType.TrialReward) SubUIManager.Close(this.upView) + -- 清空数据 + this.starGridList = {} end @@ -499,6 +506,10 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn) pro.sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig[v.tmpId].PropertyName)) lv.text=v.level local star,starType = GetStarOrGodSoulLv(1,v) + if not this.starGridList then + this.starGridList = {} + end + this.starGridList[i] = starGrid SetHeroStars(this.spLoader, starGrid, star,starType) Util.SetParticleSortLayer(starGrid,MapPanel.sortingOrder + 1) --选择