竞技场类型修改礼物修改
parent
a3efff6e68
commit
23bac06410
File diff suppressed because it is too large
Load Diff
|
@ -174,7 +174,7 @@ function this.RefreshWindowData()
|
|||
this.ChangePowerValue()
|
||||
--显示上面赠送的
|
||||
local list=GiftManager.GetPlayerGifts()
|
||||
local maxNum=16
|
||||
local maxNum=12
|
||||
if #list>maxNum then
|
||||
maxNum=#list+4
|
||||
end
|
||||
|
|
|
@ -228,13 +228,13 @@ function this.RefreshWindowData()
|
|||
--显示上面赠送的
|
||||
local list=GiftManager.GetHeroGifts(curHeroData.dynamicId)
|
||||
lv,curNum,maxNum=GiftManager.GetCollectLvAndNum()
|
||||
if #list>=50 then
|
||||
curNum=#list+6
|
||||
maxNum=#list+6
|
||||
else
|
||||
curNum=50
|
||||
maxNum=50
|
||||
end
|
||||
--if #list>=50 then
|
||||
--curNum=#list+6
|
||||
--maxNum=#list+6
|
||||
--else
|
||||
curNum=12
|
||||
maxNum=12
|
||||
--end
|
||||
this.lvTxt.text="收集度"..lv.."级"
|
||||
LogError("lv========="..lv.." curnum=="..curNum.." maxNum=="..maxNum)
|
||||
--maxNum=0
|
||||
|
@ -340,11 +340,11 @@ function this.SingleUpItemShow(_go,data,_index)
|
|||
icon.sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig[data.id].ResourceID))
|
||||
SetHeroStars(this.spLoader,starGrid,equipConfig[data.id].Star,1,nil,-15)
|
||||
Util.AddOnceClick(icon.gameObject,function()
|
||||
if curHeroData==nil then
|
||||
return
|
||||
end
|
||||
BagManager.isBagPanel=false
|
||||
UIManager.OpenPanel(UIName.RewardEquipSingleShowPopup2,this,data,2,false,nil,curHeroData,4)
|
||||
if curHeroData==nil then
|
||||
return
|
||||
end
|
||||
BagManager.isBagPanel=false
|
||||
UIManager.OpenPanel(UIName.RewardEquipSingleShowPopup2,this,data,2,false,nil,curHeroData,4)
|
||||
end
|
||||
)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue