Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c

dev_chengFeng
gaoxin 2021-06-03 10:43:10 +08:00
commit e8421f8223
3 changed files with 4 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

@ -34,9 +34,6 @@ function TreasureStorePopup:InitComponent()
table.insert(effectList,Util.GetGameObject(this.panel,"Fx_moon"))
this.Fx_Ripple = Util.GetGameObject(this.panel,"Fx_Ripple")
table.insert(effectList,this.Fx_Ripple)
this.scrollView:ForeachItemGO(function(index,go)
table.insert(effectList,Util.GetGameObject(go,"Fx_Circle"))
end)
this.lianyiBtn = Util.GetGameObject(this.panel,"lianyiBtn")
end
@ -96,8 +93,11 @@ end
function TreasureStorePopup:OnSortingOrderChange()
for i = 1,#effectList do
Util.SetParticleSortLayer(effectList[i], self.sortingOrder - orginLayer)
Util.SetParticleSortLayer(effectList[i], self.sortingOrder + 1)
end
this.scrollView:ForeachItemGO(function(index,go)
Util.SetParticleSortLayer(Util.GetGameObject(go,"Fx_Circle"), self.sortingOrder + 1)
end)
orginLayer = self.sortingOrder
end