From 5947ab0eceb18034d81509495010c3685e265ae4 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Tue, 4 Jun 2024 14:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=9C=BA=E5=8A=A0=E6=88=98=E6=96=97?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=B3=E8=BF=87=E5=88=B0=E8=B5=B7=E5=90=8D?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/View/GuideBattleLogic.lua | 6 ++++++ .../ManagedResources/~Lua/Modules/Player/PlayerManager.lua | 2 +- .../~Lua/Modules/Story/StoryDialoguePanel.lua | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/GuideBattleLogic.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/GuideBattleLogic.lua index b6a6b0695e..b0b7ae77f7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/GuideBattleLogic.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/GuideBattleLogic.lua @@ -31,6 +31,12 @@ function GuideBattleLogic:RoleTurnChange(curRound, role) if _config.TriggerType == 1 then BattleManager.SetGuidePause(true) local storyId = _config.TriggerId + if PlayerManager.jumpToCreateName then + if storyId==1250003 then + BattleManager.SetGuidePause(false) + return + end + end StoryManager.EventTrigger(storyId, function() BattleManager.SetGuidePause(false) end) diff --git a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua index 42c833ed9f..2f8ad80116 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua @@ -48,7 +48,7 @@ this.dailyRedPack = 0 this.startWeek = 0 - +this.jumpToCreateName=false this.RewardItemSingleShowPopupIsRoleUpStarLayout = false diff --git a/Assets/ManagedResources/~Lua/Modules/Story/StoryDialoguePanel.lua b/Assets/ManagedResources/~Lua/Modules/Story/StoryDialoguePanel.lua index d7fd0ee908..24d22b869a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Story/StoryDialoguePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Story/StoryDialoguePanel.lua @@ -65,7 +65,11 @@ function StoryDialoguePanel:BindEvent() static_callBack = nil end else + LogError("jumpId=================="..jumpId) self:GoNext(jumpId) + if optionID==300001 then + PlayerManager.jumpToCreateName=true + end end end) end @@ -166,6 +170,8 @@ function this.RefreshPanel(eventId, isFirstOpen) -- 跳转值 optionID = options[1] jumpId = options[2] or 0 + LogError("optionID==================="..optionID.." jumpid==========="..jumpId) + --jumpId=1250010 -- jumpId = chapterEventPointData[eventId].NextOptPanelId -- if jumpId and jumpId ~= 0 then -- -- jumpId = chapterEventPointData[jumpId].Option[1]