玉虚论道阵容界面修改

dev_chengFeng
wangzhenxing 2021-10-13 15:26:12 +08:00
parent 1ad72ca981
commit 5b41289cd0
1 changed files with 7 additions and 3 deletions

View File

@ -594,9 +594,16 @@ function this.SetRoleList(_roleDatas, isTop,isAni)
else
this.SortHeroDatas(_roleDatas)
end
--刷新玉虚论道缓存的阵容数据
if this.curFormationIndex==2001 or this.curFormationIndex==2002 or this.curFormationIndex==2003 then
this.opView.RemoveTeamByIndex(this.curFormationIndex)
for i,v in pairs(this.choosedList) do
--LogError("刷新添加=== id=="..v.heroId.." pos=="..v.position)
this.opView.AddHeroToTeam(v.heroId,v.position,this.curFormationIndex)
end
end
-- local curFormation = FormationManager.formationList[this.curFormationIndex]
this.scrollView:SetData(_roleDatas, function(index, go)
this.SingleHeroDataShow(go, _roleDatas[index])
@ -775,9 +782,6 @@ function this.SingleHeroDataShow(_go, _heroData)
for i,v in pairs(this.choosedList) do
if(heroData.dynamicId==v.heroId) then
choosedObj:SetActive(true)
if this.curFormationIndex==2001 or this.curFormationIndex==2002 or this.curFormationIndex==2003 then
this.opView.AddHeroToTeam(heroData.dynamicId,v.position,this.curFormationIndex)
end
end
end
if panelType == FORMATION_TYPE.WORLDARENA then