private void SetupCharacterScreen(MyCharacter character)
        {
            m_lightsControlHelper.SetEntity(character);
            m_dampingControlHelper.SetEntity(character);
            m_broadcastingControlHelper.SetEntity(character);
            m_helmetControlHelper.SetEntity(character);
            m_jetpackControlHelper.SetEntity(character);
            m_showBuildScreenControlHelper.SetEntity(character);
            m_showTerminalControlHelper.SetEntity(character);
            m_suicideControlHelper.SetCharacter(character);
            m_terminalControlHelper.SetCharacter(character);

            m_controlMenu = new MyGuiScreenControlMenu();

            m_controlMenu.AddItem(m_showTerminalControlHelper);
            m_controlMenu.AddItem(m_showBuildScreenControlHelper);

            m_controlMenu.AddItem(m_quickLoadControlHelper);
            m_controlMenu.AddItem(m_hudToggleControlHelper);

            m_controlMenu.AddItem(m_jetpackControlHelper);
            m_controlMenu.AddItem(m_lightsControlHelper);
            m_controlMenu.AddItem(m_dampingControlHelper);
            m_controlMenu.AddItem(m_helmetControlHelper);
            m_controlMenu.AddItem(m_broadcastingControlHelper);

            m_controlMenu.AddItem(m_cameraModeControlHelper);

            AddUseObjectControl(character);

            if (MySession.Static.SurvivalMode)
            {
                m_controlMenu.AddItem(m_suicideControlHelper);
            }
        }
Exemplo n.º 2
0
        private void SetupCharacterScreen(MyCharacter character)
        {
            m_lightsControlHelper.SetEntity(character);
            m_dampingControlHelper.SetEntity(character);
            m_broadcastingControlHelper.SetEntity(character);
            m_helmetControlHelper.SetEntity(character);
            m_jetpackControlHelper.SetEntity(character);
            m_showBuildScreenControlHelper.SetEntity(character);
            m_showTerminalControlHelper.SetEntity(character);
            m_suicideControlHelper.SetCharacter(character);
            m_terminalControlHelper.SetCharacter(character);
            m_buildModeControlHelper.SetEntity(character);

            m_controlMenu = new MyGuiScreenControlMenu();

            m_controlMenu.AddItem(m_showTerminalControlHelper);
            m_controlMenu.AddItem(m_showBuildScreenControlHelper);
            m_controlMenu.AddItem(m_buildModeControlHelper);

            //if (MyCubeBuilder.Static.ShipCreationIsActivated)
            //{
            //    m_controlMenu.AddItem(m_enableStationRotationControlHelper);
            //}


            if (MySession.Static.IsScenario)
            {
                m_controlMenu.AddItem(m_briefingMenuControlHelper);
            }

            m_controlMenu.AddItem(m_hudToggleControlHelper);

            m_controlMenu.AddItem(m_jetpackControlHelper);
            m_controlMenu.AddItem(m_lightsControlHelper);
            m_controlMenu.AddItem(m_dampingControlHelper);
            m_controlMenu.AddItem(m_helmetControlHelper);
            m_controlMenu.AddItem(m_broadcastingControlHelper);

            m_controlMenu.AddItem(m_cameraModeControlHelper);
            m_controlMenu.AddItem(m_quickLoadControlHelper);
            m_controlMenu.AddItem(m_colorPickerControlHelper);

            AddUseObjectControl(character);

            if (MySession.Static.SurvivalMode)
            {
                m_controlMenu.AddItem(m_suicideControlHelper);
            }
        }