【ios】引导战斗添加
parent
43c94a2c15
commit
39a404ab41
|
@ -13,7 +13,7 @@ local fightType -- 1关卡 2副本 3限时怪, 5兽潮, 6新关卡, 7公会boss
|
|||
local orginLayer
|
||||
--初始化组件(用于子类重写)
|
||||
function this:InitComponent()
|
||||
BattleView:InitComponent(self)
|
||||
BattleView:InitComponent(self, self.gameObject)
|
||||
orginLayer = 0
|
||||
|
||||
this.BG = Util.GetGameObject(self.gameObject, "BG")
|
||||
|
|
|
@ -490,6 +490,8 @@ function this.ExecuteLoading()
|
|||
NetManager.LoginConfimRequest()
|
||||
if AppConst.isGuide then
|
||||
if GuideManager.GetCurId(GuideType.Force) == 1 and PlayerManager.nickName == tostring(PlayerManager.uid) and PlayerManager.level == 1 then
|
||||
-- 新的引导
|
||||
-- StoryManager.EventTrigger(300001)
|
||||
--创号阶段先进入剧情对话,进入假战斗,然后对话起名,最后进入主界面
|
||||
StoryManager.EventTrigger(100001, function()
|
||||
PatFaceManager.isLogin = true
|
||||
|
|
|
@ -47,8 +47,27 @@ function this.EventTrigger(eventId, callBack)
|
|||
elseif showType == 12 then -- 选择界面
|
||||
UIManager.OpenPanel(UIName.StoryDialoguePanel, eventId, false)
|
||||
--UIManager.OpenPanel(UIName.StoryOptionPopup, eventId)
|
||||
elseif showType == 10 then -- 起名字界面
|
||||
elseif showType == 10 then -- 起名字界面
|
||||
UIManager.OpenPanel(UIName.CreateNamePopup, showType, eventId, showValues, options)
|
||||
elseif showType == 14 then -- 引导战斗
|
||||
local fb = ConfigManager.GetConfigData(ConfigName.FakeBattle, 1004)
|
||||
local testFightData = {
|
||||
fightData = loadstring("return "..fb.FightData)(),
|
||||
fightSeed = fb.TimeSeed,
|
||||
fightType = 0,
|
||||
maxRound = 20
|
||||
}
|
||||
UIManager.OpenPanel(UIName.GuideBattlePanel, testFightData, function()
|
||||
StoryManager.EventTrigger(300017, function ()
|
||||
PatFaceManager.isLogin = true
|
||||
UIManager.OpenPanel(UIName.FightPointPassMainPanel)
|
||||
LoadingPanel.End()
|
||||
end)
|
||||
end)
|
||||
elseif showType == 15 then -- 播放转场特效
|
||||
SwitchPanel.PlayTransEffect(function()
|
||||
this.StoryJumpType(options[1])
|
||||
end)
|
||||
end
|
||||
else
|
||||
Log("表数据不存在!!请检查表格!")
|
||||
|
@ -79,13 +98,12 @@ end
|
|||
|
||||
-- 剧情跳转
|
||||
function this.StoryJumpType(optionId, panel)
|
||||
Log("OptionId " .. optionId)
|
||||
local jumpType = chapterOptionData[optionId].JumpType
|
||||
|
||||
|
||||
if jumpType then
|
||||
if jumpType == 4 then -- 关闭所有界面,结束对话
|
||||
panel:ClosePanel()
|
||||
if panel then
|
||||
panel:ClosePanel()
|
||||
end
|
||||
if UIManager.IsOpen(UIName.StoryDialoguePanel) then
|
||||
UIManager.ClosePanel(UIName.StoryDialoguePanel)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue