From 252fec5bbd9b7c57e57014c9c7f3e7048616a558 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 12 Oct 2020 16:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=98=A5=E6=95=A3=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=AC=A1=E6=95=B0=E4=B8=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua | 1 + Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua | 2 +- .../~Lua/Modules/Popup/View/GeneralPopup_TrialXingYao.lua | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua b/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua index c3bd8ade3d..8f1cf64e48 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/TrialMapPanel.lua @@ -600,6 +600,7 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn) MapManager.addHpCount=MapManager.addHpCount+1 PopupTipPanel.ShowTip(string.format(Language[11265],itemConfig[itemId].Name)) Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量 + Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged) end) end) end diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua index 5079bf8d2a..75bc5bd9a0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua @@ -79,7 +79,7 @@ function GeneralPopup:BindEvent() end --返回按钮 Util.AddClick(this.backBtn,function() - PlaySoundWithoutClick(SoundConfig.Sound_UICancel) + Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged) self:ClosePanel() end) end diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_TrialXingYao.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_TrialXingYao.lua index adfc838d80..b07fc18a60 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_TrialXingYao.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_TrialXingYao.lua @@ -38,6 +38,7 @@ end function this:BindEvent() --取消按钮 Util.AddClick(this.cancelBtn,function() + Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged) parent:ClosePanel() end) --使用按钮 @@ -74,6 +75,7 @@ function this:BindEvent() curHeroHp=10000 end MapTrialManager.SetHeroHp({curHeroHp},selectHeroDid) + Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false) Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged) end) end)