无尽新手引导

dev_chengFeng
jiaoyangna 2021-05-28 14:43:27 +08:00
parent b78b006009
commit 1c7046260b
3 changed files with 16 additions and 1 deletions

View File

@ -468,7 +468,8 @@ GameEvent = {
EndLess ={
MissonChange = "EndLess.MissonChange",
RechargeQinglongSerectSuccess = "EndLess.RechargeQinglongSerectSuccess",
RefreshHeroData = "EndLess.RefreshHeroData"
RefreshHeroData = "EndLess.RefreshHeroData",
GuidePanel = "EndLess.GuidePanel",
},
--山河社稷图
FightLevel={

View File

@ -17,8 +17,15 @@ function this.Initialize()
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, this.OnLevelChange)
Game.GlobalEvent:AddEvent(GameEvent.HongMeng.HongMengGuide,this.HongMengGuideFun)
Game.GlobalEvent:AddEvent(GameEvent.Practice.PracticeGuide,this.PracticeGuideFun)
Game.GlobalEvent:AddEvent(GameEvent.EndLess.GuidePanel,this.EndlessGuideFun)
end
this.IsFirstOpenHarmonyBei = false
function this.EndlessGuideFun()
table.insert(_FuncGuideList, 102600)
this.CheckFuncGuide()
end
function this.HongMengGuideFun(OnOff)
--鸿蒙碑开启引导
print(Language[12186])
@ -701,6 +708,7 @@ 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

View File

@ -50,6 +50,12 @@ function this.RefreshItemData()
this.SetTreasureState()
CheckRedPointStatus(RedPointType.wujinTreasure)
end
local count = BagManager.GetItemCountById(this.shiQiValue)
if count > 0 and (not PlayerPrefs.HasKey("shiqiGuide"..PlayerManager.uid) or PlayerPrefs.GetInt("shiqiGuide"..PlayerManager.uid) == 0) then
PlayerPrefs.SetInt("shiqiGuide"..PlayerManager.uid,1)
Game.GlobalEvent:DispatchEvent(GameEvent.EndLess.GuidePanel)
end
end
-- 在地图中更换编队后,更新上阵编队的最大血量值