zhaoyang 2 жил өмнө
parent
commit
19dc4e06f9

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

@@ -134,7 +134,7 @@ namespace GFGGame
             }
             }
             listItem.target.data = chapterCfg.id;
             listItem.target.data = chapterCfg.id;
             listItem.m_content.target.data = chapterCfg.id;
             listItem.m_content.target.data = chapterCfg.id;
-            RedDotController.Instance.SetComRedDot(listItem.m_content.target, RedDotDataManager.Instance.GetChapterRed(chapterCfg.id), "", 0, (int)listItem.m_content.m_txtCurProgress.y - 20);
+            RedDotController.Instance.SetComRedDot(listItem.m_content.target, RedDotDataManager.Instance.GetChapterRed(chapterCfg.id), "", -100, (int)listItem.m_content.m_txtCurProgress.y - 20);
             UI_ListChapterItem.ProxyEnd();
             UI_ListChapterItem.ProxyEnd();
         }
         }
 
 

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

@@ -114,7 +114,9 @@ namespace GFGGame
 
 
         private IEnumerator InitChapter()
         private IEnumerator InitChapter()
         {
         {
+            ET.Log.Debug("zoya000");
             StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID);
             StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(_chapterID);
+            ET.Log.Debug("zoya111");
             _ui.m_txtChapterName0.text = chapterCfg.name.Length > 0 ? chapterCfg.name[0].ToString() : "";
             _ui.m_txtChapterName0.text = chapterCfg.name.Length > 0 ? chapterCfg.name[0].ToString() : "";
             _ui.m_txtChapterName1.text = chapterCfg.name.Length > 1 ? chapterCfg.name[1].ToString() : "";
             _ui.m_txtChapterName1.text = chapterCfg.name.Length > 1 ? chapterCfg.name[1].ToString() : "";
             _ui.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
             _ui.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
@@ -128,7 +130,7 @@ namespace GFGGame
             UpdateBonusBoxName(_ui.m_bonusBox2, "" + chapterCfg.bonusStar2);
             UpdateBonusBoxName(_ui.m_bonusBox2, "" + chapterCfg.bonusStar2);
             UpdateBonusBoxName(_ui.m_bonusBox3, "" + chapterCfg.bonusStar3);
             UpdateBonusBoxName(_ui.m_bonusBox3, "" + chapterCfg.bonusStar3);
             UpdateBonusBox();
             UpdateBonusBox();
-
+            ET.Log.Debug("zoya222");
             var list = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id);
             var list = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id);
             int endLevel = 0;
             int endLevel = 0;
             int UnlockCount = 0;
             int UnlockCount = 0;
@@ -203,8 +205,9 @@ namespace GFGGame
                 }
                 }
                 UI_CompStoryLevelItem.ProxyEnd();
                 UI_CompStoryLevelItem.ProxyEnd();
             }
             }
+            ET.Log.Debug("zoya333");
             yield return new WaitForEndOfFrame();
             yield return new WaitForEndOfFrame();
-
+            ET.Log.Debug("zoya444");
             _ui.m_chapter.m_compChapterScroll.target.y = Mathf.Max(0, _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height);
             _ui.m_chapter.m_compChapterScroll.target.y = Mathf.Max(0, _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height);
 
 
         }
         }