神尊显示修改

yuanshuai 2022-11-03 18:31:56 +08:00
parent 9c5eeefa30
commit 3c9271c559
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function this:InitComponent()
this.buyBtnText=Util.GetGameObject(this.buyBtn, "Text"):GetComponent("Text")
for i = 2, #prestigeConfigList do
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 ()
this.TabBtnOnClick(prestigeConfigList[i].Level)
end)
@ -103,7 +103,7 @@ function this.TabBtnOnClick(_privilegeLv)
this.selectBtn.transform:SetParent(clickBtn)
this.selectBtn.transform.localScale = Vector3.one
this.selectBtn.transform.localPosition = Vector3.zero
this.selectBtnText.text=string.format("特权%s",_level)
this.selectBtnText.text=string.format("神尊特权%s",_level)
this.UpdateLayout(_level)
end