神将碎片自选箱显示修改
parent
dd374fb0e5
commit
cd3b27e154
|
|
@ -116,11 +116,12 @@ function RewardBoxPanel:OnShow()
|
||||||
itemList={}
|
itemList={}
|
||||||
curId = nil
|
curId = nil
|
||||||
tagNum = 1
|
tagNum = 1
|
||||||
|
Util.GetGameObject( this.selectBtn,"Text"):GetComponent("Text").text= PropertyType[1]
|
||||||
--刷新按钮亮光
|
--刷新按钮亮光
|
||||||
this.selectList ={}
|
this.selectList ={}
|
||||||
for n = 1, this.selectBar.transform.childCount-1 do--设置当前页签
|
for n = 1, this.selectBar.transform.childCount-1 do--设置当前页签
|
||||||
table.insert(this.selectList,this.selectBar.transform:GetChild(n).gameObject)
|
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
|
end
|
||||||
this.selectBtn.transform:SetParent(this.selectList[1].transform)
|
this.selectBtn.transform:SetParent(this.selectList[1].transform)
|
||||||
this.selectBtn.transform.localPosition = Vector3.zero
|
this.selectBtn.transform.localPosition = Vector3.zero
|
||||||
|
|
@ -133,7 +134,7 @@ function RewardBoxPanel:OnShow()
|
||||||
this.selectBtn.transform:SetParent(this.selectList[i].transform)
|
this.selectBtn.transform:SetParent(this.selectList[i].transform)
|
||||||
this.selectBtn.transform.localPosition = Vector3.zero
|
this.selectBtn.transform.localPosition = Vector3.zero
|
||||||
this.selectBtn.transform.localScale = Vector3.one
|
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)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue