英雄礼物显示修改

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 break
end end
end end
if maxNum==0 then
maxNum=curNum
end
return lv,curNum,maxNum return lv,curNum,maxNum
end end

View File

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