【引导】添加剧情节点
parent
f4ff8d4d77
commit
5d266a04d9
|
@ -79,21 +79,6 @@ function this.OnLevelChange()
|
|||
-- end
|
||||
end
|
||||
end
|
||||
--gm 用
|
||||
function this.AddFuncGuide(funcId)
|
||||
if not funcId then return end
|
||||
LogGreen(funcId.."funcId")
|
||||
if not AppConst.isGuide then
|
||||
LogGreen("不在引导内")
|
||||
return
|
||||
end
|
||||
local guideId = GlobalSystemConfig[funcId].GuideId
|
||||
if guideId and guideId ~= 0 then
|
||||
table.insert(_FuncGuideList, guideId)
|
||||
end
|
||||
LogGreen("guideId:"..guideId)
|
||||
GuideManager.ShowGuide(guideId)
|
||||
end
|
||||
|
||||
--
|
||||
function this.OnFunctionOpen(funcId)
|
||||
|
@ -172,8 +157,6 @@ end
|
|||
-- 检测功能引导
|
||||
function GuideManager.CheckFuncGuide()
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."MainRightBarSetting",0)--引导开始关闭右侧伸缩条
|
||||
for k,v in pairs(funcDic) do
|
||||
end
|
||||
if not GuideManager.IsInMainGuide() and not _IsFuncGuild and #_FuncGuideList > 0 then
|
||||
local guideId = _FuncGuideList[1]
|
||||
if not funcDic[guideId] then
|
||||
|
@ -759,16 +742,13 @@ end
|
|||
--gm 用
|
||||
function this.AddFuncGuide(funcId)
|
||||
if not funcId then return end
|
||||
--LogGreen(funcId.."funcId")
|
||||
LogGreen(funcId.."funcId")
|
||||
if not AppConst.isGuide then
|
||||
--LogGreen("不在引导内")
|
||||
LogGreen("请勾选引导选项")
|
||||
return
|
||||
end
|
||||
local guideId = GlobalSystemConfig[funcId].GuideId
|
||||
-- if guideId and guideId ~= 0 then
|
||||
-- table.insert(_FuncGuideList, guideId)
|
||||
-- end
|
||||
--LogGreen("guideId:"..guideId)
|
||||
LogGreen("guideId:"..guideId)
|
||||
GuideManager.ShowGuide(guideId)
|
||||
end
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ function this.ExecuteBehavior(beType, beArgs)
|
|||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, OnFocus)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.UI.OnFocus, OnFocus)
|
||||
|
||||
elseif beType == 15 then
|
||||
elseif beType == 15 then -- 强制跳转,关闭目前所有界面,跳转到指定界面
|
||||
this.dialogRoot:SetActive(false)
|
||||
this.mask:SetActive(false)
|
||||
this.tipButtomRoot:SetActive(false)
|
||||
|
@ -496,6 +496,14 @@ function this.ExecuteBehavior(beType, beArgs)
|
|||
end
|
||||
_trigger.onPointerUp = _trigger.onPointerUp + endFunc
|
||||
this.SetBtnGOPosition(HeroLikeAbilityPanel.giveBtn.gameObject:GetComponent("RectTransform").position)
|
||||
elseif beType == 18 then -- 触发剧情节点
|
||||
this.canvas.enabled=false
|
||||
this.dialogRoot:SetActive(false)
|
||||
this.mask:SetActive(false)
|
||||
this.tipButtomRoot:SetActive(false)
|
||||
StoryManager.EventTrigger(tonumber(beArgs), function()
|
||||
this.NextGuide()
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue