public override bool CloseScreen(bool isUnloading = false) { if (m_pauseGame && !Sync.MultiplayerActive) { MySandboxGame.PausePop(); } bool result = base.CloseScreen(isUnloading); m_firstLoadup = false; m_musicPlayed = false; return(result); }
public void PauseClient(bool pause) { if (pause) { MySandboxGame.PausePush(); MyHud.Notifications.Add(MyNotificationSingletons.ConnectionProblem); } else { MySandboxGame.PausePop(); MyHud.Notifications.Remove(MyNotificationSingletons.ConnectionProblem); } }
public override bool CloseScreen() { if (m_pauseGame) { MySandboxGame.PausePop(); } bool ret = base.CloseScreen(); m_musicPlayed = false; MyAnalyticsHelper.ReportActivityEnd(null, "show_main_menu"); return(ret); }
protected override void OnClosed() { MySandboxGame.PausePop(); base.OnClosed(); }