【推荐阵容】加入神将版本判断
parent
9345c31d8b
commit
84f21cbd9b
|
@ -76,9 +76,18 @@ function this.OnClickTabBtn(_proId)
|
|||
local _curData={}
|
||||
for key, value in pairs(curData) do --只显示在编队中的数据
|
||||
if value.IsShowInTeam==1 then
|
||||
local isHeroOpen = true
|
||||
for i = 1, 6 do
|
||||
local heroId=value.HeroList[i]
|
||||
if not HeroManager.InVersion(heroId) then
|
||||
isHeroOpen = false
|
||||
end
|
||||
end
|
||||
if isHeroOpen then
|
||||
table.insert(_curData,value)
|
||||
end
|
||||
end
|
||||
end
|
||||
table.sort(_curData,function(a,b) return a.Sort<b.Sort end)
|
||||
this.scrollView:SetData(_curData, function(index,root)
|
||||
this.SetShow(root,_curData[index])
|
||||
|
|
Loading…
Reference in New Issue