添加切换效果

dev_chengFeng
jiaoyangna 2021-12-30 11:55:15 +08:00
parent 7b67ef38df
commit 9a0ec7feee
2 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,7 @@ function ExploreMainPanel:BindEvent()
end)
Util.AddClick(self.jinruBtn,function()
if LengthOfTable(self.data[self.mapId].formations) > 0 then
UIManager.OpenPanel(UIName.ExplorePanel,ExploreManager.ExploreMapData[self.mapId])
SwitchPanel.OpenPanel(UIName.ExplorePanel,function() end,ExploreManager.ExploreMapData[self.mapId])
else
PopupTipPanel.ShowTip("目标区域无探索队伍,无法进入!")
end

View File

@ -16,6 +16,7 @@ end
--绑定事件(用于子类重写
function ExplorePanel:BindEvent()
Util.AddClick(this.backBtn,function()
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
this:ClosePanel()
end)
Util.AddClick(this.lookReward,function()
@ -45,7 +46,7 @@ function ExplorePanel:OnShow()
this.upView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ExploreFun })
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
if not this.data or #this.data < 1 then
this:ClosePanel()
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
return
end
end