소스 검색

主线精英选中

zhaoyang 3 년 전
부모
커밋
83ff60bfa9
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

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

@@ -45,7 +45,11 @@ namespace GFGGame
             base.OnShown();
             _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;
             UpdateList();
         }
@@ -85,7 +89,7 @@ namespace GFGGame
             if (MainStoryDataManager.CheckChapterUnlock(chapterID))
             {
                 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
             {