From 3eafd78777065f35ae16f3c6cd043304d2046c1b Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <419983115@qq.com> Date: Mon, 28 Jul 2025 15:08:20 +0800 Subject: [PATCH] 1 --- .../Modules/Fight/FightPointPassMainPanel.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 48a66a16b2..54e95e404b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -61,6 +61,7 @@ local fightAnim = { --初始化组件(用于子类重写) function FightPointPassMainPanel:InitComponent() this.battleSceneLogicGameObject, this.battleSceneGameObject = BattleManager.CreateBattleScene(nil, nil) --创建战场Prefab + --local battleCamera = Util.GetGameObject(self.battleSceneGameObject, "CameraRoot/CameraPos/Camera"):GetComponent( --"Camera") --local canvas = self.battleSceneLogicGameObject:GetComponent("Canvas") @@ -434,7 +435,7 @@ function FightPointPassMainPanel:AddListener() Game.GlobalEvent:AddEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips) Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask) Game.GlobalEvent:AddEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv) - + Game.GlobalEvent:AddEvent(GameEvent.Mission.OnOpenFight, this.OnShow) Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, this.OnUIOpen) Game.GlobalEvent:AddEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone) end @@ -452,7 +453,7 @@ function FightPointPassMainPanel:RemoveListener() Game.GlobalEvent:RemoveEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips) Game.GlobalEvent:RemoveEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask) Game.GlobalEvent:RemoveEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv) - + Game.GlobalEvent:RemoveEvent(GameEvent.Mission.OnOpenFight, this.OnShow) Game.GlobalEvent:RemoveEvent(GameEvent.UI.OnOpen, this.OnUIOpen) Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone) end @@ -525,7 +526,10 @@ function FightPointPassMainPanel:OnShow() SoundManager.PlayMusic(SoundConfig.BGM_Main) -- 调用onshow invadeMonster:OnShow() - + -- 奖励预览 + this.IntiReward() + -- 刷新关卡按钮状态 + this.SetFightBtnText() local curName = GetLanguageStrById(fightLevelConfig[curFightId].Name) local curDifficulty = fightLevelConfig[curFightId].Difficulty local chapterId = 0 @@ -543,10 +547,7 @@ function FightPointPassMainPanel:OnShow() end this.chapterName.text = GetLanguageStrById(fightLevelSetConfig[chapterId].Name) - -- 奖励预览 - this.IntiReward() - -- 刷新关卡按钮状态 - this.SetFightBtnText() + local loadMapName = fightLevelConfig[FightPointPassManager.curOpenFight].BG LogError("@@@@@@"..loadMapName)