四海试炼上阵界面修改

onepiece_demo_arena
wangzhenxing 2024-01-15 19:11:29 +08:00
parent b3f0022089
commit 06a1b0ea97
4 changed files with 459 additions and 518 deletions

View File

@ -653,7 +653,7 @@ function this.OnClickTabBtn(_proId, isTop,isAni)
this.SetRoleList(heros, isTop,isAni)
if this.opView.SetCampIconByCurType then
this.opView.SetCampIconByCurType(tabs,this.selectBtn)
this.opView.SetCampIconByCurType(tabs,this.selectBtn,this.selectTxt)
else
for i = 0 , #tabs do
Util.SetGray(tabs[i],false)

View File

@ -37,7 +37,7 @@ function this.GetFormationIndex()
end
--- 设置阵营
function this.SetCampIconByCurType(tabs,selectBtn)
function this.SetCampIconByCurType(tabs,selectBtn,selectTxt)
for i = 0 , #tabs do
tabs[i]:GetComponent("Button").enabled = false
if i == curType then
@ -45,6 +45,7 @@ function this.SetCampIconByCurType(tabs,selectBtn)
selectBtn.transform:SetParent(tabs[i].transform)
selectBtn.transform:DOAnchorPos(Vector3.zero,0)
selectBtn.transform:DOScale(Vector3.one,0)
selectTxt.text=PropertyType[curType]
Util.SetGray(tabs[i],false)
else
Util.SetGray(tabs[i],true)

View File

@ -77,7 +77,7 @@ function this:OnShow(_parent,...)
end
--返还比
-- local num=tonumber(ConfigManager.GetConfigData(ConfigName.SpecialConfig,34).Value)/100
this.bodyText.text = string.format("<color=#00FF66>%s</color>的法宝会重置为<color=#00FF66>1</color>阶\n返还<color=#00FF66>进阶消耗</color>的材料,",heroReadingName)
this.bodyText.text = string.format("<color=#00FF66>%s</color>的生命卡会重置为<color=#00FF66>1</color>阶\n返还<color=#00FF66>进阶消耗</color>的材料,",heroReadingName)
local _data={}
for i=1,#dropList do