Esempio n. 1
0
        public MySpaceControlMenuInitializer()
        {
            m_lightsControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.HEADLIGHTS,
                x => x.SwitchLights(),
                x => x.EnabledLights,
                MySpaceTexts.ControlMenuItemLabel_Lights);
            m_helmetControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.HELMET,
                x => x.SwitchHelmet(),
                x => x.EnabledHelmet,
                MySpaceTexts.ControlMenuItemLabel_Helmet);
            m_dampingControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.DAMPING,
                x => x.SwitchDamping(),
                x => x.EnabledDamping,
                MySpaceTexts.ControlMenuItemLabel_Dampeners);
            m_broadcastingControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.BROADCASTING,
                x => x.SwitchBroadcasting(),
                x => x.EnabledBroadcasting,
                MySpaceTexts.ControlMenuItemLabel_Broadcasting);
            m_landingGearsControlHelper = new MyLandingGearControlHelper();
            m_connectorControlHelper    = new MyConnectorControlHelper();
            m_reactorsControlHelper     = new MyControllableEntityControlHelper(
                MyControlsSpace.TOGGLE_REACTORS,
                x => x.SwitchReactors(),
                x => x.EnabledReactors,
                MySpaceTexts.ControlMenuItemLabel_Reactors);
            m_jetpackControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.THRUSTS,
                x => x.SwitchThrusts(),
                x => x.EnabledThrusts,
                MySpaceTexts.ControlMenuItemLabel_Jetpack);
            m_buildModeControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.BUILD_MODE,
                x => MyCubeBuilder.Static.IsBuildMode = !MyCubeBuilder.Static.IsBuildMode,
                x => MyCubeBuilder.Static.IsBuildMode,
                MySpaceTexts.ControlMenuItemLabel_BuildMode);

            m_quickLoadControlHelper       = new MyQuickLoadControlHelper();
            m_hudToggleControlHelper       = new MyHudToggleControlHelper();
            m_cameraModeControlHelper      = new MyCameraModeControlHelper();
            m_showTerminalControlHelper    = new MyShowTerminalControlHelper();
            m_showBuildScreenControlHelper = new MyShowBuildScreenControlHelper();
            m_colorPickerControlHelper     = new MyColorPickerControlHelper();
            m_suicideControlHelper         = new MySuicideControlHelper();
            m_terminalControlHelper        = new MyUseTerminalControlHelper();

            m_enableStationRotationControlHelper = new MyEnableStationRotationControlHelper();
            m_briefingMenuControlHelper          = new MyBriefingMenuControlHelper();
        }
        public MySpaceControlMenuInitializer()
        {
            m_lightsControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.HEADLIGHTS,
                x => x.SwitchLights(),
                x => x.EnabledLights,
                MySpaceTexts.ControlMenuItemLabel_Lights);
            m_helmetControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.HELMET,
                x => x.SwitchHelmet(),
                x => x.EnabledHelmet,
                MySpaceTexts.ControlMenuItemLabel_Helmet);
            m_dampingControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.DAMPING,
                x => x.SwitchDamping(),
                x => x.EnabledDamping,
                MySpaceTexts.ControlMenuItemLabel_Dampeners);
            m_broadcastingControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.BROADCASTING,
                x => x.SwitchBroadcasting(),
                x => x.EnabledBroadcasting,
                MySpaceTexts.ControlMenuItemLabel_Broadcasting);
            m_landingGearsControlHelper = new MyLandingGearControlHelper();
            m_connectorControlHelper = new MyConnectorControlHelper();
            m_reactorsControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.TOGGLE_REACTORS,
                x => x.SwitchReactors(),
                x => x.EnabledReactors,
                MySpaceTexts.ControlMenuItemLabel_Reactors);
            m_jetpackControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.THRUSTS,
                x => x.SwitchThrusts(),
                x => x.EnabledThrusts,
                MySpaceTexts.ControlMenuItemLabel_Jetpack);
            m_buildModeControlHelper = new MyControllableEntityControlHelper(
                MyControlsSpace.BUILD_MODE,
                x => MyCubeBuilder.Static.IsBuildMode = !MyCubeBuilder.Static.IsBuildMode,
                x => MyCubeBuilder.Static.IsBuildMode,
                MySpaceTexts.ControlMenuItemLabel_BuildMode);

            m_quickLoadControlHelper = new MyQuickLoadControlHelper();
            m_hudToggleControlHelper = new MyHudToggleControlHelper();
            m_cameraModeControlHelper = new MyCameraModeControlHelper();
            m_showTerminalControlHelper = new MyShowTerminalControlHelper();
            m_showBuildScreenControlHelper = new MyShowBuildScreenControlHelper();
            m_colorPickerControlHelper = new MyColorPickerControlHelper();
            m_suicideControlHelper = new MySuicideControlHelper();
            m_terminalControlHelper = new MyUseTerminalControlHelper();

            m_enableStationRotationControlHelper = new MyEnableStationRotationControlHelper();
            m_briefingMenuControlHelper = new MyBriefingMenuControlHelper();
        }