zhaoyang 2 år sedan
förälder
incheckning
c4aafeb20d

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Data/StudioDataManager.cs

@@ -115,6 +115,7 @@ namespace GFGGame
         public void OnFinishFilingStoryLevel(int levelCfgId, bool firstPass, bool success)
         {
             ViewManager.Show<StudioFilingView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(typeof(StudioFilingView).FullName), true);
+
         }
     }
 }

+ 11 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/InstanceZonesSProxy.cs

@@ -42,6 +42,17 @@ namespace GFGGame
                     InstanceZonesController.OnFinishStoryLevel(levelCfgId, true, true);
                     FunctionOpenDataManager.Instance.CheckHasChapterFunOpen(response.LevelCfgId);//首次通过要检查是否有功能开启
                     BonusController.TryShowBonusList(bonusList);
+
+                    StoryLevelCfg storyLevelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
+                    if (storyLevelCfg.type == ConstInstanceZonesType.Filing)
+                    {
+                        FilingCfg filingCfg = FilingCfgArray.Instance.GetCfg(StudioDataManager.Instance.filingChapterId);
+                        SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(filingCfg.suitId);
+                        if (suitCfg.syntheticStoryLevelId == levelCfgId)
+                        {
+                            PromptController.Instance.ShowFloatTextPrompt(string.Format("已解锁{0}套装制作", suitCfg.name));
+                        }
+                    }
                     EventAgent.DispatchEvent(ConstMessage.STORY_LEVEL_CHANGE);
                     return;
                 }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingNpcView.cs

@@ -97,6 +97,7 @@ namespace GFGGame
             StudioDataManager.Instance.filingChapterId = cfg.id;
             StorageSProxy.ReqSetClientValue(ConstStorageId.STUDIO_FILING_CHAPTERID, cfg.id).Coroutine();
             EventAgent.DispatchEvent(ConstMessage.FILLING_CHANGE_CHAPTER);
+
             UI_ListNpcItem item = UI_ListNpcItem.Proxy(obj);
             item.target.AddChild(_comSelect);
             UI_ListNpcItem.ProxyEnd();

+ 20 - 3
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingRewardView.cs

@@ -25,8 +25,11 @@ namespace GFGGame
             packageName = UI_StudioFilingRewardUI.PACKAGE_NAME;
             _ui = UI_StudioFilingRewardUI.Create();
             this.viewCom = _ui.target;
-            isfullScreen = true;
+            this.viewCom.Center();
+            this.modal = true;
+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
 
+            _ui.m_list.itemRenderer = RenderListItem;
         }
         protected override void AddEventListener()
         {
@@ -36,13 +39,14 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
-
+            _ui.m_txtScore.text = string.Format("本章评分:{0}", 0);
+            _ui.m_list.numItems = FilingRewardCfgArray.Instance.GetCfgsByid(StudioDataManager.Instance.filingChapterId).Count;
         }
 
         protected override void OnHide()
         {
             base.OnHide();
-
+            _ui.m_list.ScrollToView(0);
         }
 
         protected override void RemoveEventListener()
@@ -50,5 +54,18 @@ namespace GFGGame
             base.RemoveEventListener();
 
         }
+        private void RenderListItem(int index, GObject obj)
+        {
+            FilingRewardCfg cfg = FilingRewardCfgArray.Instance.GetCfgsByid(StudioDataManager.Instance.filingChapterId)[index];
+            UI_ListRewardItem item = UI_ListRewardItem.Proxy(obj);
+            item.m_txtDesc.text = string.Format("总评分达到{0}", cfg.score);
+            item.m_listReward.itemRenderer = RenderListRewardItem;
+            UI_ListRewardItem.ProxyEnd();
+        }
+        private void RenderListRewardItem(int index, GObject obj)
+        {
+
+        }
+
     }
 }

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

@@ -116,7 +116,7 @@ namespace GFGGame
         }
         private void OnBtnRewardClick()
         {
-
+            ViewManager.Show<StudioFilingRewardView>();
         }
         private void OnBtnAddClick()
         {
@@ -124,7 +124,14 @@ namespace GFGGame
         }
         private void OnBtnSuitClick()
         {
-
+            SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(_filingCfg.suitId);
+            if (!InstanceZonesDataManager.CheckLevelPass(suitCfg.syntheticStoryLevelId))
+            {
+                StoryLevelCfg cfg = StoryLevelCfgArray.Instance.GetCfg(suitCfg.syntheticStoryLevelId);
+                PromptController.Instance.ShowFloatTextPrompt(string.Format("需通关{0}关卡解锁", cfg.name));
+                return;
+            }
+            ViewManager.Show<ClothingSyntheticView>(new object[] { _filingCfg.suitId }, new object[] { typeof(StudioFilingView).FullName, this.viewData }, true);
         }
     }
 }

BIN
GameClient/Assets/ResIn/Config/excelConfig.sqlite.bytes