【引导】引导GM添加

dev_chengFeng
gaoxin 2021-03-31 20:03:21 +08:00
parent 5f16021a0e
commit 8c2a1c9a5b
2 changed files with 17 additions and 1 deletions

View File

@ -692,6 +692,22 @@ function this.RefreshTriggerListen(id, openType, openArgs)
Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, trigger)
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
return this

View File

@ -135,7 +135,7 @@ function this:InitComponent()
this.btnTianShuMiJuan = Util.GetGameObject(this.gameObject, "scene/layer7/btnTianShuMiJuan")
this.operateIcon = {
[FUNCTION_OPEN_TYPE.SHOP] = this:AddFuncItem(this.btnShangdian, 50),
[FUNCTION_OPEN_TYPE.HERO_RESOLVE] = this:AddFuncItem(this.btnFenjie, -200),
[FUNCTION_OPEN_TYPE.HERO_RESOLVE] = this:AddFuncItem(this.btnFenjie, -1100),
[FUNCTION_OPEN_TYPE.ARENA] = this:AddFuncItem(this.btnJingjichang, -200),
[FUNCTION_OPEN_TYPE.ENDLESS] = this:AddFuncItem(this.btnColorfulWorld, -1500),
[FUNCTION_OPEN_TYPE.COMPOUND] = this:AddFuncItem(this.btnEquipCompound, -200),