英雄礼物显示修改

dev_one_discount
wangzhenxing 2023-09-21 15:18:13 +08:00
parent f2e064faf3
commit 97fc7811be
2 changed files with 5 additions and 2 deletions

View File

@ -44,6 +44,9 @@ function this.GetCollectLvAndNum()
break
end
end
if maxNum==0 then
maxNum=curNum
end
return lv,curNum,maxNum
end

View File

@ -209,8 +209,8 @@ function this.RefreshWindowData()
local list=GiftManager.GetHeroGifts(curHeroData.dynamicId)
lv,curNum,maxNum=GiftManager.GetCollectLvAndNum()
this.lvTxt.text="收集度"..lv..""
--LogError("lv========="..lv.." curnum=="..curNum.." maxNum=="..maxNum)
--local maxNum=20
LogError("lv========="..lv.." curnum=="..curNum.." maxNum=="..maxNum)
--maxNum=0
local giftDatas={}
allUpIds={}
for i=1,maxNum do