【引导】引导触发方式参数开放给功能引导使用,添加触发类型37 十连结果界面打开触发
parent
d189833b3f
commit
0b5ca2a460
|
@ -262,11 +262,12 @@ end
|
|||
function this.CheckNextGuideListen(nextId)
|
||||
if GuideConfig[nextId] then
|
||||
local type = GuideConfig[nextId].Type
|
||||
if openDic[type] then
|
||||
-- 主线引导保存下一步id
|
||||
if type == GuideType.Force and openDic[type] then
|
||||
openDic[type] = nextId
|
||||
LogGreen(" GuideConfig[nextId]:"..tostring(GuideConfig[nextId].BehaviorArgs) )
|
||||
this.RefreshTriggerListen(nextId, GuideConfig[nextId].OpenType, GuideConfig[nextId].OpenArgs)
|
||||
end
|
||||
LogGreen(" GuideConfig[nextId]:"..tostring(GuideConfig[nextId].OpenType) )
|
||||
this.RefreshTriggerListen(nextId, GuideConfig[nextId].OpenType, GuideConfig[nextId].OpenArgs)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -795,6 +796,16 @@ function this.RefreshTriggerListen(id, openType, openArgs)
|
|||
end
|
||||
end
|
||||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, trigger)
|
||||
-- 十连结果界面触发
|
||||
elseif openType == 37 then
|
||||
local trigger
|
||||
trigger = function(panelType)
|
||||
if panelType == UIName.TenRecruitPanel then
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, trigger)
|
||||
this.ShowGuide(id)
|
||||
end
|
||||
end
|
||||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, trigger)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue