public MyCustomMainMenuBase(bool pauseGame = false) : base(Vector2.Zero) { if (MyScreenManager.IsScreenOfTypeOpen(typeof(MyGuiScreenGamePlay))) { m_pauseGame = pauseGame; if (m_pauseGame && !Sync.MultiplayerActive) { MySandboxGame.PausePush(); } } else { m_closeOnEsc = false; } m_drawEvenWithoutFocus = false; DrawBuildInformation = true; }
public MyGuiScreenMainMenuBase(bool pauseGame = false) : base(Vector2.Zero, null, null) { // If the session is currently running if (MyScreenManager.IsScreenOfTypeOpen(typeof(MyGuiScreenGamePlay))) { m_pauseGame = pauseGame; // Pause if not paused and should be if (m_pauseGame) { MySandboxGame.PausePush(); } } else { m_closeOnEsc = false; } //Because then it is visible under credits, help, etc.. m_drawEvenWithoutFocus = false; DrawBuildInformation = true; }