Эх сурвалжийг харах

章节下一章问题,查阅建档

zhangyuqian 1 жил өмнө
parent
commit
bda9b85432

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

@@ -207,5 +207,8 @@ namespace GFGGame
 
         // 关闭购买弹窗事件
         public const string CLOSE_SHOPPING_TIP = "CLOSE_SHOPPING_TIP";
+
+        //更新查阅建档数据
+        public const string STUDIO_FILING_UPDATE = "STUDIO_FILING_UPDATE";
     }
 }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -176,6 +176,7 @@ namespace GFGGame
 
                 // 发送服装合成成功事件
                 EventAgent.DispatchEvent(ConstMessage.CLOTHING_SYNTHETIC_SUCCESS);
+                EventAgent.DispatchEvent(ConstMessage.STUDIO_FILING_UPDATE);
             }
 
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -245,7 +245,7 @@ namespace GFGGame
 
             StoryLevelCfg lastLevelCfg = list[list.Count - 1];
             StoryChapterCfg LastChapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID + 1);
-            if (lastLevelCfg != null && MainStoryDataManager.CheckLevelUnlock(lastLevelCfg.id) && LastChapterCfg != null)
+            if (lastLevelCfg != null && InstanceZonesDataManager.CheckLevelPass(lastLevelCfg.id) && LastChapterCfg != null)
             {
                 _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
                 _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = true;

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingView.cs

@@ -95,6 +95,7 @@ namespace GFGGame
             EventAgent.RemoveEventListener(ConstMessage.FILLING_CHANGE_CHAPTER, UpdateView);
             EventAgent.RemoveEventListener(ConstMessage.NOTICE_LIMIT_CHANGED, OnLimitChanged);
             EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
+            EventAgent.RemoveEventListener(ConstMessage.STUDIO_FILING_UPDATE, UpdateView);
 
         }
 
@@ -231,6 +232,7 @@ namespace GFGGame
                 return;
             }
             ViewManager.Show<ClothingSyntheticView>(new object[] { _studioCfg.suitId }, new object[] { typeof(StudioFilingView).FullName, this.viewData }, false);
+            EventAgent.AddEventListener(ConstMessage.STUDIO_FILING_UPDATE, UpdateView);
             //if (_viewData == StudioDataManager.Instance.GetLuckyBoxActivityID())
             //{
             //    int _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);