Ver código fonte

套装图鉴奖励

guodong 3 anos atrás
pai
commit
dbe4cfb9f5

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -163,6 +163,7 @@ namespace GFGGame
             //GameProxy.ReqGetStoryStarList();
             //GameProxy.ReqGetStoryStarList();
 
 
             ItemHelper.GetItemAttributeInfos().Coroutine();
             ItemHelper.GetItemAttributeInfos().Coroutine();
+            SuitFosterHelper.SendGetSuitInfos().Coroutine();
         }
         }
 
 
         public static void PrepareUpdateTreasure()
         public static void PrepareUpdateTreasure()

+ 17 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs

@@ -2,6 +2,7 @@ using FairyGUI;
 using UI.FieldGuide;
 using UI.FieldGuide;
 using UI.CommonGame;
 using UI.CommonGame;
 using System.Collections.Generic;
 using System.Collections.Generic;
+using UI.ClothingSynthetic;
 
 
 namespace GFGGame
 namespace GFGGame
 {
 {
@@ -53,6 +54,7 @@ namespace GFGGame
             UpdateListType();
             UpdateListType();
 
 
             EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateSuitStatus);
             EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateSuitStatus);
+            EventAgent.AddEventListener(ConstMessage.SUIT_BOX_STATUS_CHANGED, UpdateSuitBoxStatus);
         }
         }
 
 
         protected override void OnHide()
         protected override void OnHide()
@@ -60,6 +62,7 @@ namespace GFGGame
             base.OnHide();
             base.OnHide();
             _valueBarController.OnHide();
             _valueBarController.OnHide();
             EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateSuitStatus);
             EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, UpdateSuitStatus);
+            EventAgent.RemoveEventListener(ConstMessage.SUIT_BOX_STATUS_CHANGED, UpdateSuitBoxStatus);
         }
         }
 
 
         private void OnClickListTypeItem()
         private void OnClickListTypeItem()
@@ -102,6 +105,20 @@ namespace GFGGame
             UpdateListSuit();
             UpdateListSuit();
         }
         }
 
 
+        private void UpdateSuitBoxStatus(EventContext eventContext)
+        {
+            int suitId = (int)eventContext.data;
+            int num = _ui.m_listSuit.numChildren;
+            for (int i = 0; i < num; i++)
+            {
+                UI_CompSuitItem listItem = UI_CompSuitItem.Proxy(_ui.m_listSuit.GetChildAt(i));
+                int tempSuitId = (int)listItem.target.data;
+                if (tempSuitId == suitId)
+                {
+                    UpdateSuitStatusView(listItem);
+                }
+            }
+        }
         private void UpdateListType()
         private void UpdateListType()
         {
         {
             _ui.m_listType.RemoveChildrenToPool();
             _ui.m_listType.RemoveChildrenToPool();