【鸿蒙阵bug修改】
parent
e94bbe1641
commit
d42cbc0a34
|
@ -85,6 +85,7 @@ function HongMengEnvoyPanel:BindEvent()
|
||||||
self.AddBtn,
|
self.AddBtn,
|
||||||
function()
|
function()
|
||||||
--二级弹窗界面
|
--二级弹窗界面
|
||||||
|
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OpenBoxTips)
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OpenBoxTips)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
|
@ -300,6 +300,13 @@ function this:AddBoxFun(boxData)
|
||||||
local content = ""
|
local content = ""
|
||||||
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.XuanHuangZhiQi)
|
||||||
DemonCrystal = BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal)
|
DemonCrystal = BagManager.GetTotalItemNum(UpViewRechargeType.DemonCrystal)
|
||||||
|
local keys = GameDataBase.SheetBase.GetKeys(this.tab) --获取数据长度
|
||||||
|
if #HarmonyManager.hongmengHeroInfos >= #keys then
|
||||||
|
-- body
|
||||||
|
PopupTipPanel.ShowTip("共鸣格子已经全部解锁")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
if Gold >= boxData.PropPrice[2] then
|
if Gold >= boxData.PropPrice[2] then
|
||||||
content =string.format("是否花费%d玄黄之气解锁共鸣位置",boxData.PropPrice[2])
|
content =string.format("是否花费%d玄黄之气解锁共鸣位置",boxData.PropPrice[2])
|
||||||
elseif Gold < boxData.PropPrice[2] then
|
elseif Gold < boxData.PropPrice[2] then
|
||||||
|
@ -313,6 +320,9 @@ function this:AddBoxFun(boxData)
|
||||||
if Gold < boxData.PropPrice[2] and DemonCrystal < boxData.MoneyPrice[2] then
|
if Gold < boxData.PropPrice[2] and DemonCrystal < boxData.MoneyPrice[2] then
|
||||||
PopupTipPanel.ShowTip("妖晶不足!")
|
PopupTipPanel.ShowTip("妖晶不足!")
|
||||||
return
|
return
|
||||||
|
end
|
||||||
|
if condition then
|
||||||
|
-- body
|
||||||
end
|
end
|
||||||
--向服务器请求消息
|
--向服务器请求消息
|
||||||
NetManager.HongMengRequset(boxData.Id,function()
|
NetManager.HongMengRequset(boxData.Id,function()
|
||||||
|
@ -394,6 +404,9 @@ function this:OpenBoxFun()
|
||||||
if tempData then
|
if tempData then
|
||||||
-- body
|
-- body
|
||||||
this:AddBoxFun(tempData)
|
this:AddBoxFun(tempData)
|
||||||
|
else
|
||||||
|
PopupTipPanel.ShowTip("共鸣格子已经全部解锁")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -889,20 +889,17 @@ function this:BindEvent()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(this.btnHongMeng,function()
|
Util.AddClick(this.btnHongMeng,function()
|
||||||
if HarmonyManager:HongMengTowerUpLimit() > 0 then
|
NetManager.HongMengInfoResponse(function ()
|
||||||
-- body
|
-- body
|
||||||
UIManager.OpenPanel(UIName.HongMengEnvoyPanel)
|
if HarmonyManager:HongMengTowerUpLimit() > 0 then
|
||||||
else
|
-- body
|
||||||
if PlayerManager.level == 45 then
|
UIManager.OpenPanel(UIName.HongMengEnvoyPanel)
|
||||||
NetManager.HongMengInfoResponse(function ()
|
|
||||||
-- body
|
|
||||||
UIManager.OpenPanel(UIName.HongMengPanel)
|
|
||||||
end)
|
|
||||||
else
|
else
|
||||||
UIManager.OpenPanel(UIName.HongMengPanel)
|
UIManager.OpenPanel(UIName.HongMengPanel)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end)
|
||||||
|
|
||||||
|
|
||||||
-- if (ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.HongMengZhen)) then
|
-- if (ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.HongMengZhen)) then
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue