Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 public void PauseClient(bool pause)
 {
     if (pause)
     {
         MySandboxGame.PausePush();
         MyHud.Notifications.Add(MyNotificationSingletons.ConnectionProblem);
     }
     else
     {
         MySandboxGame.PausePop();
         MyHud.Notifications.Remove(MyNotificationSingletons.ConnectionProblem);
     }
 }
Esempio n. 3
0
        public override bool CloseScreen()
        {
            if (m_pauseGame)
            {
                MySandboxGame.PausePop();
            }

            bool ret = base.CloseScreen();

            m_musicPlayed = false;

            MyAnalyticsHelper.ReportActivityEnd(null, "show_main_menu");

            return(ret);
        }
Esempio n. 4
0
 protected override void OnClosed()
 {
     MySandboxGame.PausePop();
     base.OnClosed();
 }