【森罗幻境】移动过程中打开其他界面问题修复
parent
223b816a98
commit
1431423c4f
|
@ -88,15 +88,27 @@ function this:BindEvent()
|
|||
|
||||
-- 功绩按钮
|
||||
Util.AddClick(this.btnAchive, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.EliteCarbonAchievePanel, MapManager.GetCurCarbonId(), false, 1)
|
||||
end)
|
||||
--排行
|
||||
Util.AddClick(this.btnRank, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.CarbonScoreSortPanel,1)
|
||||
end)
|
||||
|
||||
--奖励
|
||||
Util.AddClick(this.btnReward,function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.TrialRewardPopup)
|
||||
end)
|
||||
|
||||
|
|
|
@ -80,16 +80,28 @@ function TrialMapPanel:BindEvent()
|
|||
|
||||
--炸弹按钮
|
||||
Util.AddClick(this.btnBomb, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.TrialBomb)
|
||||
end)
|
||||
|
||||
--回春散
|
||||
Util.AddClick(this.btnXingYao,function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.TrialXingYao)
|
||||
end)
|
||||
|
||||
-- 打开补给点
|
||||
Util.AddClick(this.buffShop, function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
-- 判断是否有保存的补给点
|
||||
if #FoodBuffManager.GetBuffPropList()<=0 then
|
||||
PopupTipPanel.ShowTip(Language[11250])
|
||||
|
@ -100,6 +112,10 @@ function TrialMapPanel:BindEvent()
|
|||
|
||||
-- 打开商店
|
||||
Util.AddClick(this.normalShop, function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
if not ShopManager.IsActive(SHOP_TYPE.TRIAL_SHOP) then
|
||||
PopupTipPanel.ShowTip(Language[10381])
|
||||
return
|
||||
|
@ -109,10 +125,18 @@ function TrialMapPanel:BindEvent()
|
|||
|
||||
--帮助按钮
|
||||
Util.AddClick(this.helpBtn,function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.HelpPopup,HELP_TYPE.Sunro,this.helpPos.x,this.helpPos.y)
|
||||
end)
|
||||
--设置按钮
|
||||
Util.AddClick(MapPanel.btnSetting, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.TrialSetting)
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -70,10 +70,18 @@ end
|
|||
function this.BindEvent()
|
||||
--帮助按钮
|
||||
Util.AddClick(this.helpBtn,function()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.HelpPopup,HELP_TYPE.Sunro,this.helpPos.x,this.helpPos.y)
|
||||
end)
|
||||
-- 重置
|
||||
Util.AddClick(this.btnReset, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
if not this.CanClick() then return end
|
||||
-- 复位角色的状态
|
||||
MsgPanel.ShowTwo(Language[11283], nil, function()
|
||||
|
@ -82,6 +90,10 @@ function this.BindEvent()
|
|||
end)
|
||||
|
||||
Util.AddClick(this.btnFormat, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
if not this.CanClick() then return end
|
||||
NetManager.RequestAllHeroHp(function ()
|
||||
-- UIManager.OpenPanel(UIName.FormationPanel, FORMATION_TYPE.CARBON, MapManager.curMapId)
|
||||
|
@ -91,12 +103,20 @@ function this.BindEvent()
|
|||
end)
|
||||
|
||||
Util.AddClick(this.btnNote, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
if not this.CanClick() then return end
|
||||
--标记状态设置显示
|
||||
this.SetNoteShow()
|
||||
end)
|
||||
|
||||
Util.AddClick(this.btnAddEnergy, function ()
|
||||
if ctrlView.GetCallListCount() > 1 then
|
||||
PopupTipPanel.ShowTip("正在行走 不可点击!")
|
||||
return
|
||||
end
|
||||
Log(Language[11284] .. #MapManager.stepList)
|
||||
if not this.CanClick() then return end
|
||||
if #MapManager.stepList > 0 then
|
||||
|
|
|
@ -294,6 +294,10 @@ function UpView:OnClick(index)
|
|||
end
|
||||
|
||||
function UpView:RechargeType(_type)
|
||||
if MapManager.Mapping then
|
||||
PopupTipPanel.ShowTip("需退出副本购买~")
|
||||
return
|
||||
end
|
||||
if _type == UpViewRechargeType.Energy or
|
||||
_type == UpViewRechargeType.Gold or
|
||||
_type == UpViewRechargeType.ChallengeTicket or
|
||||
|
@ -309,15 +313,11 @@ function UpView:RechargeType(_type)
|
|||
UIManager.OpenPanel(UIName.ElementDrawCardPanel)
|
||||
elseif _type == UpViewRechargeType.DemonCrystal then
|
||||
-- 充值商店
|
||||
-- if not MapManager.Mapping then
|
||||
if not ShopManager.IsActive(SHOP_TYPE.SOUL_STONE_SHOP) then
|
||||
PopupTipPanel.ShowTip(Language[10438])
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.MainRechargePanel, 1)
|
||||
-- else
|
||||
-- PopupTipPanel.ShowTip(Language[12099])
|
||||
-- end
|
||||
if not ShopManager.IsActive(SHOP_TYPE.SOUL_STONE_SHOP) then
|
||||
PopupTipPanel.ShowTip(Language[10438])
|
||||
return
|
||||
end
|
||||
UIManager.OpenPanel(UIName.MainRechargePanel, 1)
|
||||
elseif _type == UpViewRechargeType.SoulCrystal then
|
||||
-- 充值商店
|
||||
if not MapManager.Mapping then
|
||||
|
|
Loading…
Reference in New Issue