【心魔试炼】一键购买
parent
fcc00ee1d7
commit
7353ddd09a
|
|
@ -92,22 +92,22 @@ function MonsterCampNewPanel:BindEvent()
|
|||
end,2)
|
||||
end)
|
||||
Util.AddClick(this.moppingUpBtn, function ()
|
||||
local _storeDataId,_itemId,_costNum,moppingUpNum = MonsterCampManager.MonsterCampGetYJGMCost()
|
||||
MsgPanel.ShowTwo(string.format("是否花费%s进行一键扫荡?",_costNum,itemConfig[itemId].Name),function() end,function()
|
||||
if BagManager.GetItemCountById(_itemId) < _costNum then
|
||||
PopupTipPanel.ShowTip(string.format(Language[10298], itemConfig[itemId].Name))
|
||||
else
|
||||
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeDataId,moppingUpNum,function()
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BUY_BATTLENUM, moppingUpNum)
|
||||
NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
|
||||
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
|
||||
this.UpdatePrivilage()
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
end,"取消","确定")
|
||||
-- local _storeDataId,_itemId,_costNum,moppingUpNum = MonsterCampManager.MonsterCampGetYJGMCost()
|
||||
-- MsgPanel.ShowTwo(string.format("是否花费%s进行一键扫荡?",_costNum,itemConfig[itemId].Name),function() end,function()
|
||||
-- if BagManager.GetItemCountById(_itemId) < _costNum then
|
||||
-- PopupTipPanel.ShowTip(string.format(Language[10298], itemConfig[itemId].Name))
|
||||
-- else
|
||||
-- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeDataId,moppingUpNum,function()
|
||||
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BUY_BATTLENUM, moppingUpNum)
|
||||
-- NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
|
||||
-- UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
|
||||
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
|
||||
-- this.UpdatePrivilage()
|
||||
-- end)
|
||||
-- end)
|
||||
-- end)
|
||||
-- end
|
||||
-- end,"取消","确定")
|
||||
end)
|
||||
BindRedPointObject(RedPointType.EpicExplore,Util.GetGameObject(this.btnHelpFight, "redPoint"))
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue