神尊显示修改
parent
9c5eeefa30
commit
3c9271c559
|
@ -27,7 +27,7 @@ function this:InitComponent()
|
||||||
this.buyBtnText=Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
|
this.buyBtnText=Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
|
||||||
for i = 2, #prestigeConfigList do
|
for i = 2, #prestigeConfigList do
|
||||||
local tabBtn = newObjToParent(this.tabBtnPre, this.tabGrid)
|
local tabBtn = newObjToParent(this.tabBtnPre, this.tabGrid)
|
||||||
Util.GetGameObject(tabBtn, "Text"):GetComponent("Text").text=string.format("特权%s",prestigeConfigList[i].Level)
|
Util.GetGameObject(tabBtn, "Text"):GetComponent("Text").text=string.format("神尊特权%s",prestigeConfigList[i].Level)
|
||||||
Util.AddClick(tabBtn,function ()
|
Util.AddClick(tabBtn,function ()
|
||||||
this.TabBtnOnClick(prestigeConfigList[i].Level)
|
this.TabBtnOnClick(prestigeConfigList[i].Level)
|
||||||
end)
|
end)
|
||||||
|
@ -103,7 +103,7 @@ function this.TabBtnOnClick(_privilegeLv)
|
||||||
this.selectBtn.transform:SetParent(clickBtn)
|
this.selectBtn.transform:SetParent(clickBtn)
|
||||||
this.selectBtn.transform.localScale = Vector3.one
|
this.selectBtn.transform.localScale = Vector3.one
|
||||||
this.selectBtn.transform.localPosition = Vector3.zero
|
this.selectBtn.transform.localPosition = Vector3.zero
|
||||||
this.selectBtnText.text=string.format("特权%s",_level)
|
this.selectBtnText.text=string.format("神尊特权%s",_level)
|
||||||
this.UpdateLayout(_level)
|
this.UpdateLayout(_level)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue