From b88d05061ce2b4a5ef33f4f2b25f04e10862760f Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Sat, 8 May 2021 11:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=82=B9=E9=87=91=E8=BE=BE=E4=BA=BA?= =?UTF-8?q?=E3=80=91=E5=9C=A8=E6=B4=BB=E5=8A=A8=E7=95=8C=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=82=B9=E9=87=91=EF=BC=8C=E9=9C=80=E8=A6=81=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B5=E7=AD=BE=EF=BC=8C=E6=AC=A1=E6=95=B0=E6=89=8D?= =?UTF-8?q?=E4=BC=9A=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/FindTreasure/FindTreasureMainPanel.lua | 2 +- .../ManagedResources/~Lua/Modules/NewActivity/ExpertPage.lua | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureMainPanel.lua index d44734c30b..f17c18bb04 100644 --- a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureMainPanel.lua @@ -517,7 +517,7 @@ end --界面关闭时调用(用于子类重写) function FindTreasureMainPanel:OnClose() - + Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold) if timer then timer:Stop() timer = nil diff --git a/Assets/ManagedResources/~Lua/Modules/NewActivity/ExpertPage.lua b/Assets/ManagedResources/~Lua/Modules/NewActivity/ExpertPage.lua index b0d09d0711..efab4eb014 100644 --- a/Assets/ManagedResources/~Lua/Modules/NewActivity/ExpertPage.lua +++ b/Assets/ManagedResources/~Lua/Modules/NewActivity/ExpertPage.lua @@ -10,12 +10,12 @@ end --添加事件监听(用于子类重写) function ExpertPage:AddListener() - + Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, self.RefreshData,self) end --移除事件监听(用于子类重写) function ExpertPage:RemoveListener() - + Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, self.RefreshData,self) end @@ -134,6 +134,7 @@ end --刷新数据 function ExpertPage:RefreshData(isTop,isAni) + LogYellow("刷新了么") self.ActData = CommonActPageManager.GetData(self.actConfig.ActiveType) if self.actConfig.RpType > 0 then CheckRedPointStatus(self.actConfig.RpType)