From fbf66138ca1e97a0e7c679f5ae7183fd227a5f9a Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Mon, 25 Oct 2021 17:19:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=8E=89=E8=99=9A=E8=AE=BA=E9=81=93]=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=E7=8E=89=E8=99=9A=E6=AE=B5=E4=BD=8D=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=89=B9=E6=95=88=E5=B1=82=E7=BA=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/WorldArena/WorldArenaUpRewardPanel.prefab | 14 +++++++------- .../Modules/WorldArena/WorldArenaUpRewardPanel.lua | 12 ++++++++++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/WorldArena/WorldArenaUpRewardPanel.prefab b/Assets/ManagedResources/Prefabs/UI/WorldArena/WorldArenaUpRewardPanel.prefab index db8ac1718c..ec91e6753c 100644 --- a/Assets/ManagedResources/Prefabs/UI/WorldArena/WorldArenaUpRewardPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/WorldArena/WorldArenaUpRewardPanel.prefab @@ -36,8 +36,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -0.00000095367, y: -377} - m_SizeDelta: {x: 847.3, y: 177.8} + m_AnchoredPosition: {x: -0.00000095367, y: -388.9} + m_SizeDelta: {x: 847.3, y: 201.6} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7368018991282595720 CanvasRenderer: @@ -449,8 +449,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -2, y: 36.300003} - m_SizeDelta: {x: 1076, y: 960.7} + m_AnchoredPosition: {x: -2, y: 17} + m_SizeDelta: {x: 1076, y: 999.2} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5267261137994259565 CanvasRenderer: @@ -757,7 +757,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: -0.000015258789} + m_AnchoredPosition: {x: 0, y: 0.000022888184} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} --- !u!114 &5343069358979546458 @@ -794,8 +794,8 @@ MonoBehaviour: m_ChildAlignment: 4 m_StartCorner: 0 m_StartAxis: 0 - m_CellSize: {x: 135, y: 135} - m_Spacing: {x: 50, y: 21.75} + m_CellSize: {x: 135, y: 150} + m_Spacing: {x: 50, y: 45} m_Constraint: 0 m_ConstraintCount: 2 --- !u!1 &2755785382488797040 diff --git a/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaUpRewardPanel.lua b/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaUpRewardPanel.lua index c16c6a8dfb..7265976f22 100644 --- a/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaUpRewardPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaUpRewardPanel.lua @@ -68,7 +68,7 @@ function WorldArenaUpRewardPanel:OnOpen(data) titleLive.transform:SetParent(this.rankImg.transform) titleLive.transform.localPosition=Vector3.New(0,-600,0) titleLive.transform.localScale =Vector3.New(1,1,1) - AddParticleSortLayer(titleLive,self.sortingOrder) + SetParticleSortLayer(titleLive,self.sortingOrder) if not rankData then return end @@ -113,7 +113,7 @@ function this.SetStarShow(star,grade,layer) titleLive.transform.localPosition=Vector3.New(0,-600,0) titleLive.transform.localScale =Vector3.New(1,1,1) end - AddParticleSortLayer(titleLive,layer) + SetParticleSortLayer(titleLive,layer) end this.rankName.text=rankData.RankName end @@ -175,6 +175,9 @@ end function WorldArenaUpRewardPanel:OnSortingOrderChange() layer=self.sortingOrder + if titleLive then + SetParticleSortLayer(titleLive,self.sortingOrder) + end end --滚动条数 @@ -253,6 +256,11 @@ function this:OnClose() this.TimeCounter:Stop() this.TimeCounter = nil end + if titleLive then + destroy(titleLive) + titleLive=nil + end + end