示例#1
0
        public static void ErrorWhileLoadingAssets(Exception e)
        {
            string text = "ErrorWhileLoadingAssets".Translate();

            if (ModsConfig.ActiveModsInLoadOrder.Any((ModMetaData x) => !x.Official) || !ModsConfig.ActiveModsInLoadOrder.Any((ModMetaData x) => x.IsCoreMod))
            {
                text += "\n\n" + "ErrorWhileLoadingAssets_ModsInfo".Translate();
            }
            DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingAssetsTitle".Translate());
            GenScene.GoToMainMenu();
        }
示例#2
0
        public static void ErrorWhileLoadingAssets(Exception e)
        {
            string text = "ErrorWhileLoadingAssets".Translate();

            if (ModsConfig.ActiveModsInLoadOrder.Count <ModMetaData>() != 1 || !ModsConfig.ActiveModsInLoadOrder.First <ModMetaData>().IsCoreMod)
            {
                text = text + "\n\n" + "ErrorWhileLoadingAssets_ModsInfo".Translate();
            }
            DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingAssetsTitle".Translate());
            GenScene.GoToMainMenu();
        }
示例#3
0
        public static void ErrorWhileLoadingGame(Exception e)
        {
            string text = "ErrorWhileLoadingMap".Translate();

            if (!ScribeMetaHeaderUtility.LoadedModsMatchesActiveMods(out string loadedModsSummary, out string runningModsSummary))
            {
                text += "\n\n" + "ModsMismatchWarningText".Translate(loadedModsSummary, runningModsSummary);
            }
            DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingMapTitle".Translate());
            Scribe.ForceStop();
            GenScene.GoToMainMenu();
        }
示例#4
0
        public static void ErrorWhileLoadingGame(Exception e)
        {
            string text  = "ErrorWhileLoadingMap".Translate();
            string text2 = default(string);
            string text3 = default(string);

            if (!ScribeMetaHeaderUtility.LoadedModsMatchesActiveMods(out text2, out text3))
            {
                text = text + "\n\n" + "ModsMismatchWarningText".Translate(text2, text3);
            }
            DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingMapTitle".Translate());
            Scribe.ForceStop();
            GenScene.GoToMainMenu();
        }
示例#5
0
 public static void ErrorWhileGeneratingMap(Exception e)
 {
     DelayedErrorWindowRequest.Add("ErrorWhileGeneratingMap".Translate(), "ErrorWhileGeneratingMapTitle".Translate());
     Scribe.ForceStop();
     GenScene.GoToMainMenu();
 }