From 6dbc5558608b679f9c5065f2460e29be0e7ae16e Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Fri, 8 Jan 2021 11:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E5=9B=9E=E6=94=BE?= =?UTF-8?q?=E3=80=91=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/RewardItemPopup.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua index f3d029c8fb..44d25d7641 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemPopup.lua @@ -145,13 +145,8 @@ function RewardItemPopup:OnOpen(...) end local haveRecord = BattleRecordManager.isHaveRecord() this.btnResult:SetActive(haveRecord and args[5]) - this.btnBattleBack:SetActive(haveRecord and args[5]) + this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT) this.btnResultMax:SetActive(haveRecord and args[5]) - if BattleManager.GetLastBattleType() == BATTLE_TYPE.MAP_FIGHT then--地图 - this.btnBattleBack:SetActive(false) - else - this.btnBattleBack:SetActive(true) - end -- 设置背景遮罩的显隐 local isHideBG = args[6] this.btnBack:GetComponent("Image").color = Color.New(0, 0, 0, isHideBG and 0 or 0.8)