添加切换效果
parent
7b67ef38df
commit
9a0ec7feee
|
@ -111,7 +111,7 @@ function ExploreMainPanel:BindEvent()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(self.jinruBtn,function()
|
Util.AddClick(self.jinruBtn,function()
|
||||||
if LengthOfTable(self.data[self.mapId].formations) > 0 then
|
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
|
else
|
||||||
PopupTipPanel.ShowTip("目标区域无探索队伍,无法进入!")
|
PopupTipPanel.ShowTip("目标区域无探索队伍,无法进入!")
|
||||||
end
|
end
|
||||||
|
|
|
@ -16,6 +16,7 @@ end
|
||||||
--绑定事件(用于子类重写
|
--绑定事件(用于子类重写
|
||||||
function ExplorePanel:BindEvent()
|
function ExplorePanel:BindEvent()
|
||||||
Util.AddClick(this.backBtn,function()
|
Util.AddClick(this.backBtn,function()
|
||||||
|
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
|
||||||
this:ClosePanel()
|
this:ClosePanel()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.lookReward,function()
|
Util.AddClick(this.lookReward,function()
|
||||||
|
@ -45,7 +46,7 @@ function ExplorePanel:OnShow()
|
||||||
this.upView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ExploreFun })
|
this.upView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ExploreFun })
|
||||||
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
|
this.data = ExploreManager.GetFormationDataByMapId(this.mapData.mapId)
|
||||||
if not this.data or #this.data < 1 then
|
if not this.data or #this.data < 1 then
|
||||||
this:ClosePanel()
|
SwitchPanel.ClosePanel(UIName.ExplorePanel, function()end)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue