神尊特权按钮文字
parent
190617c6e5
commit
96c1e0cde9
|
@ -28,7 +28,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)
|
||||||
|
@ -108,7 +108,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