Esempio n. 1
0
        public MyGuiScreenMedicals()
            : base(new Vector2(0.85f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, new Vector2(0.95f, 0.8f))
        {
            Static = this;
            EnabledBackgroundFade = true;
            CloseButtonEnabled    = false;
            m_closeOnEsc          = false;
            m_selectedRespawnShip = null;

            RecreateControls(true);

            MySandboxGame.PausePush();
        }
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 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;
 }
Esempio n. 4
0
        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;
        }