【拍脸】寻仙招募拍脸跳转添加引导小手
parent
2342bd8af8
commit
63343f88c7
|
@ -140,6 +140,14 @@ function ActivityMainPanel:OnOpen(_activityType,_index,change)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 限时引导小手
|
||||||
|
function ActivityMainPanel:ShowGuideGo(guideType)
|
||||||
|
--
|
||||||
|
if subViewList[_CurPageIndex] and subViewList[_CurPageIndex].sub and subViewList[_CurPageIndex].sub.ShowGuideGo then
|
||||||
|
subViewList[_CurPageIndex].sub:ShowGuideGo(guideType)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- 打开,重新打开时回调
|
-- 打开,重新打开时回调
|
||||||
function ActivityMainPanel:OnShow()
|
function ActivityMainPanel:OnShow()
|
||||||
SoundManager.PlayMusic(SoundConfig.BGM_Main)
|
SoundManager.PlayMusic(SoundConfig.BGM_Main)
|
||||||
|
|
|
@ -447,6 +447,11 @@ function TimeLimitUpHero:TimeToDHMS(second)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--
|
||||||
|
function TimeLimitUpHero:ShowGuideGo()
|
||||||
|
JumpManager.ShowGuide(UIName.ActivityMainPanel, self.btn_hero)
|
||||||
|
end
|
||||||
|
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
function TimeLimitUpHero:OnClose()
|
function TimeLimitUpHero:OnClose()
|
||||||
self.gameObject:SetActive(false)
|
self.gameObject:SetActive(false)
|
||||||
|
|
|
@ -695,7 +695,7 @@ local jumpDic = {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
[JumpType.StateActivity] = function (data)
|
[JumpType.StateActivity] = function (data)
|
||||||
this.JumpActivity(JumpType.StateActivity,data[1])
|
this.JumpActivity(JumpType.StateActivity,data[1], data[2])
|
||||||
end,
|
end,
|
||||||
[JumpType.FightLevel] = function (data)
|
[JumpType.FightLevel] = function (data)
|
||||||
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
||||||
|
@ -901,7 +901,7 @@ local jumpDic = {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
function this.JumpActivity(data,skipfactor)
|
function this.JumpActivity(data,skipfactor, guideType)
|
||||||
local isOpen = DynamicActivityManager.IsActivityOpenByJumpIndex(data, skipfactor)
|
local isOpen = DynamicActivityManager.IsActivityOpenByJumpIndex(data, skipfactor)
|
||||||
if not isOpen then
|
if not isOpen then
|
||||||
PopupTipPanel.ShowTip("活动尚未开启")
|
PopupTipPanel.ShowTip("活动尚未开启")
|
||||||
|
@ -920,7 +920,11 @@ function this.JumpActivity(data,skipfactor)
|
||||||
UIManager.ClosePanel(UIName.ActivityMainPanel)
|
UIManager.ClosePanel(UIName.ActivityMainPanel)
|
||||||
end
|
end
|
||||||
DynamicActivityManager.AddUIList(this.jumpId)
|
DynamicActivityManager.AddUIList(this.jumpId)
|
||||||
UIManager.OpenPanel(UIName.ActivityMainPanel,data,skipfactor)
|
local panel = UIManager.OpenPanel(UIName.ActivityMainPanel,data,skipfactor)
|
||||||
|
-- 限时引导光效
|
||||||
|
if guideType and guideType > 0 then
|
||||||
|
panel:ShowGuideGo(guideType)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
-- function this.GetTip(openType,openValue)
|
-- function this.GetTip(openType,openValue)
|
||||||
-- if openType == 1 then
|
-- if openType == 1 then
|
||||||
|
|
Loading…
Reference in New Issue