Ejemplo n.º 1
0
        public UserDisplay(Display display)
        {
            InitializeComponent();

            mainDisplay   = display;
            cogSettings   = new CognitiveLoadSettings(mainDisplay);
            inputSettings = new InputSettings(mainDisplay);

            ObjectSelect.SelectedIndex          = mainDisplay.getObjectId();
            StationaryObjectsList.SelectedIndex = 0;
            AppearBehaviour.SelectedIndex       = 0; //Implement setters for choices *ToDo
            CarActivation.SelectedIndex         = 0;
            CarBehaviour.SelectedIndex          = 0;

            SteeringWheelSenseSet.Value   = mainDisplay.steeringSensitivity;
            SteeringWheelSensScroll.Value = (int)SteeringWheelSenseSet.Value;
            TransmissionEffSet.Value      = (int)(mainDisplay.transmissionEfficiency * 100);
            TransmissionEffScroll.Value   = (int)TransmissionEffSet.Value;
            BrakeForceSet.Value           = (int)mainDisplay.brakeMax;
            BrakeForceScroll.Value        = (int)BrakeForceSet.Value;
            SimStepSet.Value     = (int)mainDisplay.msPerUpdate;
            SimStepScroll.Value  = (int)SimStepSet.Value;
            RTriggerFactor.Value = (int)mainDisplay.rTriggerMax;

            saveData.InitialDirectory = mainDisplay.getFileName();
            initialized = true;
            this.BringToFront();
        }
Ejemplo n.º 2
0
        public UserDisplay(Display display)
        {
            InitializeComponent();

            mainDisplay = display;
            cogSettings = new CognitiveLoadSettings(mainDisplay);
            inputSettings = new InputSettings(mainDisplay);

            ObjectSelect.SelectedIndex = mainDisplay.getObjectId();
            StationaryObjectsList.SelectedIndex = 0;
            AppearBehaviour.SelectedIndex = 0; //Implement setters for choices *ToDo
            CarActivation.SelectedIndex = 0;
            CarBehaviour.SelectedIndex = 0;

            SteeringWheelSenseSet.Value = mainDisplay.steeringSensitivity;
            SteeringWheelSensScroll.Value = (int)SteeringWheelSenseSet.Value;
            TransmissionEffSet.Value = (int)(mainDisplay.transmissionEfficiency * 100);
            TransmissionEffScroll.Value = (int)TransmissionEffSet.Value;
            BrakeForceSet.Value = (int)mainDisplay.brakeMax;
            BrakeForceScroll.Value = (int)BrakeForceSet.Value;
            SimStepSet.Value = (int)mainDisplay.msPerUpdate;
            SimStepScroll.Value = (int)SimStepSet.Value;
            RTriggerFactor.Value = (int)mainDisplay.rTriggerMax;

            saveData.InitialDirectory = mainDisplay.getFileName();
            initialized = true;
            this.BringToFront();
        }