Ver código fonte

锦罗织造红点补充

huangxiaoyue 2 anos atrás
pai
commit
57ff15c1fd

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Constant/ConstMessage.cs

@@ -145,6 +145,9 @@ namespace GFGGame
         //通知通行证赛季变更
         public const string NOTICE_PASSPORT_SEASON_CHANGE = "NOTICE_PASSPORT_SEASON_CHANGE";
 
+        //通知锦罗织造领取
+        public const string STORE_BROCADE_WEAV_RECEIVE = "STORE_BROCADE_WEAV_RECEIVE";
+
         //通知多个任务状态变更
         public const string NOTICE_BATCH_TASK_STATE_CHANGE = "NOTICE_BATCH_TASK_STATE_CHANGE";
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/BattlePassTaskSProxy.cs

@@ -102,6 +102,7 @@ namespace GFGGame
                 BattlePassTaskDataManager.Instance.AddSuperReward(level);
             }
             EventAgent.DispatchEvent(ConstMessage.RED_CHANGE);
+            EventAgent.DispatchEvent(ConstMessage.STORE_BROCADE_WEAV_RECEIVE);
             BonusController.TryShowBonusList(bonusList);
             return true;
         }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBrocadeWeavView.cs

@@ -100,6 +100,7 @@ namespace GFGGame
         {
             var itemId = (int)eventContext.data;
             if (itemId != ConstItemID.BATTLE_PASS_CURRENCY) return;
+
             //刷新积分列表
             SetExpProcess();
         }

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/Store/StoreView.cs

@@ -55,6 +55,8 @@ namespace GFGGame
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
             EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
             EventAgent.AddEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
+            EventAgent.AddEventListener(ConstMessage.STORE_BROCADE_WEAV_RECEIVE, UpdateStoreMonthRedDot);
+
         }
         protected override void OnShown()
         {
@@ -96,7 +98,9 @@ namespace GFGGame
             EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
             EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
             EventAgent.RemoveEventListener(ConstMessage.NOTICE_BATCH_TASK_STATE_CHANGE, UpdateStoreMonthRedDot);
+            EventAgent.RemoveEventListener(ConstMessage.STORE_BROCADE_WEAV_RECEIVE, UpdateStoreMonthRedDot);
         }
+
         private void OnClickBtnBack()
         {
             ViewManager.Hide(_curViewName);
@@ -198,8 +202,8 @@ namespace GFGGame
             }
             _curSubTabIndex = index;
             _curViewName = "GFGGame." + viewName;
-
         }
+
         private void UpdateRedDot()
         {
             RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpRewardRed());