From cd3b27e154e00182edcccd94d5ea28e90eee9898 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Wed, 6 Dec 2023 10:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=B0=86=E7=A2=8E=E7=89=87=E8=87=AA?= =?UTF-8?q?=E9=80=89=E7=AE=B1=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/RewardBox/RewardBoxPanel.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua index a5d7ecb7dd..ad0b55fb90 100644 --- a/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RewardBox/RewardBoxPanel.lua @@ -116,11 +116,12 @@ function RewardBoxPanel:OnShow() itemList={} curId = nil tagNum = 1 - + Util.GetGameObject( this.selectBtn,"Text"):GetComponent("Text").text= PropertyType[1] --刷新按钮亮光 this.selectList ={} for n = 1, this.selectBar.transform.childCount-1 do--设置当前页签 table.insert(this.selectList,this.selectBar.transform:GetChild(n).gameObject) + Util.GetGameObject(this.selectBar.transform:GetChild(n).gameObject,"Text"):GetComponent("Text").text= PropertyType[n] end this.selectBtn.transform:SetParent(this.selectList[1].transform) this.selectBtn.transform.localPosition = Vector3.zero @@ -133,7 +134,7 @@ function RewardBoxPanel:OnShow() this.selectBtn.transform:SetParent(this.selectList[i].transform) this.selectBtn.transform.localPosition = Vector3.zero this.selectBtn.transform.localScale = Vector3.one - Util.GetGameObject( this.selectBtn,"Text"):GetComponent("Text").text= Util.GetGameObject( this.selectList[i],"Text"):GetComponent("Text").text + Util.GetGameObject( this.selectBtn,"Text"):GetComponent("Text").text= PropertyType[i]--Util.GetGameObject( this.selectList[i],"Text"):GetComponent("Text").text end) end