|
@@ -7,21 +7,6 @@ namespace GFGGame
|
|
|
{
|
|
|
InstanceZonesController.ShowLevelView(levelCfgId, OnFinishStoryLevel);
|
|
|
}
|
|
|
-
|
|
|
- public static void ShowCardStoryDialog(CardStoryCfg cardStoryCfg, CardData cardData)
|
|
|
- {
|
|
|
- ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { cardStoryCfg.storyStartID, true, new OnCompleteStoryDialogCall(OnCompleteCardStoryDialog), cardData }, null, true);
|
|
|
- }
|
|
|
- public static void ShowFilingStoryDialog(string levelCfgId)
|
|
|
- {
|
|
|
- ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { levelCfgId, false, new OnCompleteStoryDialogCall(OnCompleteFilingStoryDialog) }, null, true);
|
|
|
- }
|
|
|
- public static void ShowPriorStoryDialog()
|
|
|
- {
|
|
|
- InstanceZonesDataManager.currentLevelCfgId = 100001001;
|
|
|
- ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { MainStoryDataManager.priorId, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog) }, null, true);
|
|
|
- }
|
|
|
-
|
|
|
public static void OnFinishStoryLevel(int levelCfgId, bool firstPass, bool success)
|
|
|
{
|
|
|
if (success)
|
|
@@ -62,6 +47,11 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ public static void ShowCardStoryDialog(CardStoryCfg cardStoryCfg, CardData cardData)
|
|
|
+ {
|
|
|
+ ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { cardStoryCfg.storyStartID, true, new OnCompleteStoryDialogCall(OnCompleteCardStoryDialog), cardData }, null, true);
|
|
|
+ }
|
|
|
private static void OnCompleteCardStoryDialog(bool isSkip, object param)
|
|
|
{
|
|
|
CardData cardData = param as CardData;
|
|
@@ -69,12 +59,32 @@ namespace GFGGame
|
|
|
ViewManager.Show(ViewName.CARD_STORY_VIEW, cardData);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public static void ShowPriorStoryDialog()
|
|
|
+ {
|
|
|
+ InstanceZonesDataManager.currentLevelCfgId = 100001001;
|
|
|
+ ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { MainStoryDataManager.priorId, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog) }, null, true);
|
|
|
+ }
|
|
|
+
|
|
|
private static void OnCompletePriorStoryDialog(bool isSkip, object param)
|
|
|
{
|
|
|
ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public static void ShowFilingStoryDialog(StoryLevelCfg storyLevelCfg)
|
|
|
+ {
|
|
|
+
|
|
|
+ InstanceZonesDataManager.currentLevelCfgId = storyLevelCfg.id;
|
|
|
+
|
|
|
+ ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { storyLevelCfg.storyStartID, false, new OnCompleteStoryDialogCall(OnCompleteFilingStoryDialog) }, null, true);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
private static void OnCompleteFilingStoryDialog(bool isSkip, object param)
|
|
|
{
|
|
|
+ InstanceZonesController.OnCompleteChapterStoryDialog(isSkip, param);
|
|
|
+
|
|
|
ViewManager.Show<StudioFilingView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(typeof(StudioFilingView).FullName), true);
|
|
|
}
|
|
|
}
|