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