【心魔试炼】一键
parent
f38620058c
commit
281e19ad74
|
|
@ -92,22 +92,26 @@ function MonsterCampNewPanel:BindEvent()
|
||||||
end,2)
|
end,2)
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.moppingUpBtn, function ()
|
Util.AddClick(this.moppingUpBtn, function ()
|
||||||
-- local _storeDataId,_itemId,_costNum,moppingUpNum = MonsterCampManager.MonsterCampGetYJGMCost()
|
if MonsterCampManager.monsterWave - 1 > 0 then
|
||||||
-- MsgPanel.ShowTwo(string.format("是否花费%s进行一键扫荡?",_costNum,itemConfig[itemId].Name),function() end,function()
|
local _storeDataId,_itemId,_costNum,moppingUpNum = MonsterCampManager.MonsterCampGetYJGMCost()
|
||||||
-- if BagManager.GetItemCountById(_itemId) < _costNum then
|
MsgPanel.ShowTwo(string.format("是否花费%s进行一键扫荡?",_costNum,itemConfig[itemId].Name),function() end,function()
|
||||||
-- PopupTipPanel.ShowTip(string.format(Language[10298], itemConfig[itemId].Name))
|
if BagManager.GetItemCountById(_itemId) < _costNum then
|
||||||
-- else
|
PopupTipPanel.ShowTip(string.format(Language[10298], itemConfig[itemId].Name))
|
||||||
-- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeDataId,moppingUpNum,function()
|
else
|
||||||
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BUY_BATTLENUM, moppingUpNum)
|
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeDataId,moppingUpNum,function()
|
||||||
-- NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
|
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BUY_BATTLENUM, moppingUpNum)
|
||||||
-- UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
|
NetManager.SweepDemonRequest(MonsterCampManager.monsterWave - 1,true,function(msg)
|
||||||
-- PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
|
UIManager.OpenPanel(UIName.RewardItemPopup,msg.Drop,1,function()
|
||||||
-- this.UpdatePrivilage()
|
PrivilegeManager.RefreshPrivilegeUsedTimes(PRIVILEGE_TYPE.MONSTERCAMP_BATTLENUM, MonsterCampManager.GetCanBattleCount() )
|
||||||
-- end)
|
this.UpdatePrivilage()
|
||||||
-- end)
|
end)
|
||||||
-- end)
|
end)
|
||||||
-- end
|
end)
|
||||||
-- end,"取消","确定")
|
end
|
||||||
|
end,"取消","确定")
|
||||||
|
else
|
||||||
|
PopupTipPanel.ShowTip("当前不可扫荡!")
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
BindRedPointObject(RedPointType.EpicExplore,Util.GetGameObject(this.btnHelpFight, "redPoint"))
|
BindRedPointObject(RedPointType.EpicExplore,Util.GetGameObject(this.btnHelpFight, "redPoint"))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ function MonsterCampSingleWave:SetIcon()
|
||||||
self.rewardText.text = "奖励"
|
self.rewardText.text = "奖励"
|
||||||
if self.data.Id < MonsterCampManager.monsterWave - 1 then
|
if self.data.Id < MonsterCampManager.monsterWave - 1 then
|
||||||
elseif 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)
|
self.fight.gameObject:SetActive(true)
|
||||||
if self.freeTimes > 0 then
|
if self.freeTimes > 0 then
|
||||||
self.fightBtnText.text = string.format("<color=#%s>%s</color>","17232A","免费扫荡")
|
self.fightBtnText.text = string.format("<color=#%s>%s</color>","17232A","免费扫荡")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue