|
@@ -78,10 +78,19 @@ namespace GFGGame
|
|
|
{
|
|
|
string value = infos[1];
|
|
|
var levelCfgId = int.Parse(value);
|
|
|
- CalculateHelper.GetStoryChapterLevel(levelCfgId, out int chapterInt, out int levelInt);
|
|
|
- string chapter = NumberUtil.GetChiniseNumberText(chapterInt);
|
|
|
- string level = NumberUtil.GetChiniseNumberText(levelInt);
|
|
|
- listItem.target.text = string.Format(gameFunctionCfg.name, chapter, level);
|
|
|
+ var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
|
+ if(levelCfg.type == ConstInstanceZonesType.Story)
|
|
|
+ {
|
|
|
+ var chapterCfg = StoryChapterCfgArray.Instance.GetCfg(levelCfg.chapterId);
|
|
|
+ string chapter = NumberUtil.GetChiniseNumberText(chapterCfg.order);
|
|
|
+ string level = NumberUtil.GetChiniseNumberText(levelCfg.order);
|
|
|
+ listItem.target.text = string.Format(gameFunctionCfg.name, chapter, level);
|
|
|
+ }
|
|
|
+ else if(levelCfg.type == ConstInstanceZonesType.Studio)
|
|
|
+ {
|
|
|
+ var studioCfg = StudioCfgArray.Instance.GetCfg(levelCfg.chapterId);
|
|
|
+ listItem.target.text = studioCfg.name;
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -106,13 +115,21 @@ namespace GFGGame
|
|
|
case ConstFunctionId.JU_QING_GUAN_QIA:
|
|
|
string value = infos[1];
|
|
|
var levelCfgId = int.Parse(value);
|
|
|
- CalculateHelper.GetStoryChapterLevel(levelCfgId, out int chapterInt, out int levelInt);
|
|
|
- if ((string)_fromeViewDatas[0] == ViewName.DRESS_UP_FIGHT_VIEW)
|
|
|
+ var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
|
+
|
|
|
+ if (levelCfg.type == ConstInstanceZonesType.Story)
|
|
|
+ {
|
|
|
+ if ((string)_fromeViewDatas[0] == ViewName.DRESS_UP_FIGHT_VIEW)
|
|
|
+ {
|
|
|
+ //从战斗换装必需品来源跳转到剧情界面,在剧情界面点返回后直接返回章节界面,无需返回换装界面
|
|
|
+ _fromeViewDatas = null;
|
|
|
+ }
|
|
|
+ ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, levelCfg.chapterId, _fromeViewDatas, true);
|
|
|
+ }
|
|
|
+ else if (levelCfg.type == ConstInstanceZonesType.Studio)
|
|
|
{
|
|
|
- //从战斗换装必需品来源跳转到剧情界面,在剧情界面点返回后直接返回章节界面,无需返回换装界面
|
|
|
- _fromeViewDatas = null;
|
|
|
+ //TO DO
|
|
|
}
|
|
|
- ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, chapterInt, _fromeViewDatas, true);
|
|
|
StoryController.ShowLevelView(levelCfgId);
|
|
|
break;
|
|
|
case ConstFunctionId.FU_ZHUANG_HE_CHENG:
|