From cae60a1318c59344bc2dc71d5213bc2fd4759457 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Fri, 19 Mar 2021 23:54:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=87=AA=E9=80=89=E5=AE=9D=E7=AE=B1?= =?UTF-8?q?=E3=80=91=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RewardBox/RewardBoxPanel.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua index 50d71121ee..37f31a7236 100644 --- a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua @@ -114,6 +114,11 @@ function RewardBoxPanel:OnOpen(...) this.rewardGroup = itemConfig[data[2]].RewardGroup this.itemId = itemConfig[data[2]].Id end + + this.scroll.gameObject:GetComponent("RectTransform").sizeDelta = data[1] and Vector2.New(940, 880) or Vector2.New(940, 1000) + this.scroll.gameObject:GetComponent("RectTransform").anchoredPosition = data[1] and Vector2.New(0, 415) or Vector2.New(0, 542.6) + this.ScrollView.gameObject:GetComponent("RectTransform").sizeDelta = data[1] and Vector2.New(940, 900) or Vector2.New(940, 1000) + Util.GetGameObject(this.gameObject,"bg/bg/huangtiao"):SetActive(not not data[1]) end -- 打开,重新打开时回调