添加切换效果
parent
7b67ef38df
commit
9a0ec7feee
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue