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);
        }
        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);
        }
Esempio n. 3
0
        public MyGuiScreenMedicals(bool showPermaDeath = true)
            : 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;
            this.showPermaDeath   = showPermaDeath;

            RecreateControls(true);

            if (MySandboxGame.IsPaused == false)
            {
                MySandboxGame.UserPauseToggle();
            }
        }