zhangjiannan 2025-03-18 19:01:11 +08:00
parent 868509a6a6
commit 2bb77469b8
1 changed files with 9 additions and 5 deletions

View File

@ -10,7 +10,7 @@ local m_backPanel
local orginLayer
local m_callBack
local hadClick = false
local isFightNextClick = false
--初始化组件(用于子类重写)
function BattleWinPopup:InitComponent()
this.spLoader = SpriteLoader.New()
@ -22,10 +22,12 @@ end
--绑定事件(用于子类重写)
function BattleWinPopup:BindEvent()
Util.AddClick(this.btnWin, function()
self:ClosePanel()
if m_fightType == BATTLE_TYPE.Test then
if m_battlePanel then
m_battlePanel:ClosePanel()
if isFightNextClick == false then
self:ClosePanel()
if m_fightType == BATTLE_TYPE.Test then
if m_battlePanel then
m_battlePanel:ClosePanel()
end
end
end
end)
@ -254,6 +256,7 @@ function this.ShowBattleResultByStoryFight(drop)
-- 再刷新一便关卡信息
NetManager.InitFightPointLevelInfo()
if isFightNext then
isFightNextClick = true
FightPointPassManager.oldLevel = PlayerManager.level
local MonsterGroupId = FightPointPassManager.GetBattleMonsterGroup()
FightPointPassManager.enterFightBattle = true
@ -568,6 +571,7 @@ end
--界面打开时调用(用于子类重写)
function BattleWinPopup:OnOpen(battlePanel, isBack, fightType, result, showRecord, backPanel, func)
hadClick = false
isFightNextClick = false
if battlePanel then
m_battlePanel = battlePanel
end