【心魔试炼】一键

dev_chengFeng
zhangqiang 2021-05-26 09:53:41 +08:00
parent f38620058c
commit 281e19ad74
2 changed files with 21 additions and 17 deletions

View File

@ -92,22 +92,26 @@ 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,"取消","确定")
if MonsterCampManager.monsterWave - 1 > 0 then
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,"取消","确定")
else
PopupTipPanel.ShowTip("当前不可扫荡!")
end
end)
BindRedPointObject(RedPointType.EpicExplore,Util.GetGameObject(this.btnHelpFight, "redPoint"))
end

View File

@ -215,7 +215,7 @@ function MonsterCampSingleWave:SetIcon()
self.rewardText.text = "奖励"
if self.data.Id < MonsterCampManager.monsterWave - 1 then
elseif self.data.Id == MonsterCampManager.monsterWave - 1 then--扫荡
self.rewardText.text = "扫荡奖励"
-- self.rewardText.text = "扫荡奖励"
self.fight.gameObject:SetActive(true)
if self.freeTimes > 0 then
self.fightBtnText.text = string.format("<color=#%s>%s</color>","17232A","免费扫荡")