From e8928e062d073d7b9f0257053f929dc0d985ef3e Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 18 Mar 2021 15:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=81=93=E5=85=B7=E8=87=AA=E9=80=89?= =?UTF-8?q?=E7=AE=B1=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua index 2f3e8f0fd8..8b0a871338 100644 --- a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua @@ -26,6 +26,7 @@ function RewardBoxPanel:InitComponent() this.btnBack = Util.GetGameObject(this.gameObject,"bg/btnBack") this.scroll = Util.GetGameObject(this.gameObject,"bg/scroll") this.itemPre = Util.GetGameObject(this.gameObject,"bg/scroll/itemPre2") + this.name = Util.GetGameObject(this.gameObject,"bg/bg/name"):GetComponent("Text") this.tip = Util.GetGameObject(this.gameObject,"bg/topBar/tip") this.selectBar = Util.GetGameObject(this.gameObject,"bg/topBar/selectBar") this.selectBtn = Util.GetGameObject(this.gameObject,"bg/di/selectBtn") @@ -117,6 +118,7 @@ end -- 打开,重新打开时回调 function RewardBoxPanel:OnShow() + this.name.text = itemConfig[this.itemId].Name itemList={} curId = nil tagNum = 1