【编队】修复打开四灵试炼编队报错

dev_chengFeng
gaoxin 2021-09-23 16:05:18 +08:00
parent 41aaab4d09
commit ac88b50cae
2 changed files with 6 additions and 5 deletions

View File

@ -1210,10 +1210,10 @@ FORMATION_TYPE = {
XUANYUAN_MIRROR=20,
GUILD_TRANSCRIPT=21,
FIGHTLEVEL=22,
FOUR_ELEMENT = 24,
JUMPSERVER_HIGHTLADDER=23,--跨服
WORLDARENA=24,--玉虚论道3队
QIJIESHILIAN=25,--七界试炼编队
FOUR_ELEMENT = 24,
WORLDARENA=25,--玉虚论道3队
QIJIESHILIAN=26,--七界试炼编队
}
--活动Type定义

View File

@ -571,7 +571,8 @@ function this.OnClickTabBtn(_proId, isTop,isAni)
end
this.empty:SetActive(#heros<=0)
this.SetRoleList(heros, isTop,isAni)
if panelType == FORMATION_TYPE.FOUR_ELEMENT then
if this.opView.SetCampIconByCurType then
this.opView.SetCampIconByCurType(tabs,this.selectBtn)
else
for i = 0 , #tabs do
@ -588,7 +589,7 @@ end
--设置英雄列表数据
function this.SetRoleList(_roleDatas, isTop,isAni)
if panelType == FORMATION_TYPE.FOUR_ELEMENT then
if this.opView.SortHeroDatas then
this.opView.SortHeroDatas(_roleDatas)
else
this.SortHeroDatas(_roleDatas)