zhaoyang 3 жил өмнө
parent
commit
83ff60bfa9

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

@@ -45,7 +45,11 @@ namespace GFGGame
             base.OnShown();
             base.OnShown();
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gxhd_bjbj");
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gxhd_bjbj");
 
 
-            subType = MainStoryDataManager.GetChapterSubType(MainStoryDataManager.currentChapterCfgId);
+            subType = 0;//MainStoryDataManager.GetChapterSubType(MainStoryDataManager.currentChapterCfgId);
+            if (this.viewData != null)
+            {
+                subType = (int)this.viewData;
+            }
             _ui.m_listType.selectedIndex = subType;
             _ui.m_listType.selectedIndex = subType;
             UpdateList();
             UpdateList();
         }
         }
@@ -85,7 +89,7 @@ namespace GFGGame
             if (MainStoryDataManager.CheckChapterUnlock(chapterID))
             if (MainStoryDataManager.CheckChapterUnlock(chapterID))
             {
             {
                 this.Hide();
                 this.Hide();
-                ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, chapterID, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW });
+                ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, chapterID, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW, _ui.m_listType.selectedIndex });
             }
             }
             else
             else
             {
             {