神将,进阶提交

dev_chengFeng
jiaoyangna 2020-09-03 14:12:32 +08:00
parent 71851d1662
commit 6a951e8fd7
1 changed files with 15 additions and 2 deletions

View File

@ -67,17 +67,30 @@ function RoleUpStarListPanel:OnOpen(heroData,HeroRankupGroupData,RankupConsumeMa
curHeroData = _curHeroData
heroDataList = heroData
this.HeroSortData(heroDataList)
local text = ""
for i, v in pairs(heroDataList) do
text = ""
for n,w in pairs(FormationManager.formationList) do
if HeroManager.heroResolveLicence[n] then
for m = 1, #w.teamHeroInfos do
if v.dynamicId==w.teamHeroInfos[m].heroId then
local isFormationStr = HeroManager.GetHeroFormationStr(n)
v.isFormation = isFormationStr
local isFormationStr = HeroManager.GetHeroFormationStr2(n)
if isFormationStr ~= "" then
if not text or text == "" then
text = isFormationStr
else
text = text .. ""..isFormationStr
end
end
end
end
end
end
if not text or text == "" then
v.isFormation = ""
else
v.isFormation = Language[12317]..text..Language[12318]
end
end
this.ScrollView:SetData(heroDataList, function (index, go)
this.OnShowSingleCardData(go, heroDataList[index])