神将碎片自选箱显示修改

onepiece_demo_arena
wangzhenxing 2023-12-06 10:56:39 +08:00
parent dd374fb0e5
commit cd3b27e154
1 changed files with 3 additions and 2 deletions

View File

@ -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