Example #1
0
        static void Prefix(Window __instance)
        {
            bool pauseOnResearchWindowOpen = LoadedModManager
                                             .GetMod <ResearchPauseMod>()
                                             .GetSettings <ResearchPauseSettings>()
                                             .pauseOnResearchWindowOpen;

            if (__instance is MainTabWindow_Research && pauseOnResearchWindowOpen)
            {
                TickManager_Helper.UnpausedIfPaused();
            }
        }
Example #2
0
        static void Prefix(bool doCompletionDialog)
        {
            bool pauseOnResearchFinished = LoadedModManager
                                           .GetMod <ResearchPauseMod>()
                                           .GetSettings <ResearchPauseSettings>()
                                           .pauseOnResearchFinished;

            if (Current.ProgramState == ProgramState.Playing && pauseOnResearchFinished)
            {
                TickManager_Helper.PauseIfUnpaused();
            }
        }