修改剧情入口
parent
8c7208dff3
commit
ed9c058ece
|
@ -44,8 +44,10 @@ function this.OnLevelChange()
|
||||||
-- 首充引导特殊处理到十级开放
|
-- 首充引导特殊处理到十级开放
|
||||||
if PlayerManager.level == 10 then
|
if PlayerManager.level == 10 then
|
||||||
table.insert(_FuncGuideList, 100200)
|
table.insert(_FuncGuideList, 100200)
|
||||||
StoryMapManager.isShowStory = true
|
StoryMapManager.isShowStory = 1
|
||||||
this.CheckFuncGuide()
|
this.CheckFuncGuide()
|
||||||
|
elseif PlayerManager.level == 22 then
|
||||||
|
StoryMapManager.isShowStory = 3
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
|
|
|
@ -474,11 +474,11 @@ function this.ExecuteBehavior(beType, beArgs)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.ShowStory(nextId,OnFocus)
|
function this.ShowStory(nextId,OnFocus)
|
||||||
if StoryMapManager.isShowStory then
|
if StoryMapManager.isShowStory ~= 0 then
|
||||||
StoryMapManager.isShowStory = false
|
StoryMapManager.isShowStory = 0
|
||||||
local isShowStory = 1
|
local isShowStory = 1
|
||||||
if PlayerPrefs.HasKey("StoryMapPanel1"..PlayerManager.uid) then
|
if PlayerPrefs.HasKey("StoryMapPanel"..StoryMapManager.isShowStory..PlayerManager.uid) then
|
||||||
isShowStory = PlayerPrefs.GetInt("StoryMapPanel1"..PlayerManager.uid)
|
isShowStory = PlayerPrefs.GetInt("StoryMapPanel"..StoryMapManager.isShowStory..PlayerManager.uid)
|
||||||
end
|
end
|
||||||
if isShowStory == 1 then
|
if isShowStory == 1 then
|
||||||
LogGreen("this.gameObject:"..this.gameObject.name)
|
LogGreen("this.gameObject:"..this.gameObject.name)
|
||||||
|
@ -488,8 +488,8 @@ function this.ShowStory(nextId,OnFocus)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.GuaJi.CloseStoryMapPanel,onCloseStoryMapPanel)
|
Game.GlobalEvent:RemoveEvent(GameEvent.GuaJi.CloseStoryMapPanel,onCloseStoryMapPanel)
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel,onCloseStoryMapPanel)
|
Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel,onCloseStoryMapPanel)
|
||||||
PlayerPrefs.SetInt("StoryMapPanel1"..PlayerManager.uid,0)
|
PlayerPrefs.SetInt("StoryMapPanel"..StoryMapManager.isShowStory..PlayerManager.uid,0)
|
||||||
StoryMapManager.InitData(1)
|
StoryMapManager.InitData(StoryMapManager.isShowStory)
|
||||||
else
|
else
|
||||||
this.NextGuide(nextId)
|
this.NextGuide(nextId)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus)
|
Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, OnFocus)
|
||||||
|
|
|
@ -181,23 +181,9 @@ function SupremeHeroPopup:OnOpen(_fun)
|
||||||
fun = _fun
|
fun = _fun
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.ShowStory()
|
|
||||||
local isShowStory = 1
|
|
||||||
if PlayerPrefs.HasKey("StoryMapPanel2"..PlayerManager.uid) then
|
|
||||||
isShowStory = PlayerPrefs.GetInt("StoryMapPanel2"..PlayerManager.uid)
|
|
||||||
end
|
|
||||||
if isShowStory == 1 then
|
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.GuaJi.CloseStoryMapPanel,this.InitShowPanel)
|
|
||||||
PlayerPrefs.SetInt("StoryMapPanel2"..PlayerManager.uid,0)
|
|
||||||
StoryMapManager.InitData(3)
|
|
||||||
else
|
|
||||||
this.InitShowPanel()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function SupremeHeroPopup:OnShow()
|
function SupremeHeroPopup:OnShow()
|
||||||
actIsDone = false
|
actIsDone = false
|
||||||
this.ShowStory()
|
this.InitShowPanel()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.InitShowPanel()
|
function this.InitShowPanel()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
StoryMapManager = {}
|
StoryMapManager = {}
|
||||||
local this = StoryMapManager
|
local this = StoryMapManager
|
||||||
this.groupConfigs = {}
|
this.groupConfigs = {}
|
||||||
this.isShowStory = false
|
this.isShowStory = 0
|
||||||
local storyMapConfig = ConfigManager.GetConfig(ConfigName.StoryMapConfig)
|
local storyMapConfig = ConfigManager.GetConfig(ConfigName.StoryMapConfig)
|
||||||
--初始化
|
--初始化
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
|
|
Loading…
Reference in New Issue