コード例 #1
0
        protected virtual void SetItems()
        {
            ClearItems();

            driverHeater = new MenuItem(i => "Driver Heat: [" + GetLevel(E65Seats.DriverSeat.HeaterLevel) + "]",
                                        i => E65Seats.ButtonHeaterDriver(), MenuItemType.Button)
            {
                RadioAbbreviation = "Drv Ht"
            };

            passengerHeater = new MenuItem(i => "Pass Heat: [" + GetLevel(E65Seats.PassengerSeat.HeaterLevel) + "]",
                                           i => E65Seats.ButtonHeaterPassenger(), MenuItemType.Button)
            {
                RadioAbbreviation = "Pas Ht"
            };

            driverVentilation = new MenuItem(i => "Driver Vent: [" + GetLevel(E65Seats.DriverSeat.VentilationSpeed) + "]",
                                             i => E65Seats.ButtonVentilationDriver(), MenuItemType.Button)
            {
                RadioAbbreviation = "Drv Vt"
            };

            passengerVentilation = new MenuItem(i => "Pass Vent: [" + GetLevel(E65Seats.PassengerSeat.VentilationSpeed) + "]",
                                                i => E65Seats.ButtonVentilationPassenger(), MenuItemType.Button)
            {
                RadioAbbreviation = "Pas Vt"
            };

            driverMassage = new MenuItem(i => "Driver Massage", i => E65Seats.ButtonMassageDriver(), MenuItemType.Checkbox, MenuItemAction.PassiveCheckbox)
            {
                RadioAbbreviation = "Drv Masg", IsChecked = E65Seats.DriverSeat.IsMassageActive
            };

            passengerMassage = new MenuItem(i => "Pass Massage", i => E65Seats.ButtonMassagePassenger(), MenuItemType.Checkbox, MenuItemAction.PassiveCheckbox)
            {
                RadioAbbreviation = "Pass Masg", IsChecked = E65Seats.PassengerSeat.IsMassageActive
            };

            AddItem(driverHeater);
            AddItem(passengerHeater);
            AddItem(driverVentilation);
            AddItem(passengerVentilation);
            AddItem(driverMassage);
            AddItem(passengerMassage);
            AddItem(new MenuItem(i => "Driver Move", MenuItemType.Button, MenuItemAction.GoToScreen)
            {
                GoToScreen = driverMoveScreen
            });
            AddItem(new MenuItem(i => "Passenger Move", MenuItemType.Button, MenuItemAction.GoToScreen)
            {
                GoToScreen = passengerMoveScreen, RadioAbbreviation = "Pass. Move"
            });
            AddItem(new MenuItem(i => "Settings", MenuItemType.Button, MenuItemAction.GoToScreen)
            {
                GoToScreen = settingsScreen
            });
            this.AddBackButton();
        }
コード例 #2
0
 protected virtual void SetItems()
 {
     ClearItems();
     driverHeater = new MenuItem(i => "Driver Heat: [" + GetLevel(E65Seats.DriverSeat.HeaterLevel) + "]",
                                 i => E65Seats.ButtonHeaterDriverPress(), MenuItemType.Button, MenuItemAction.Refresh);
     passengerHeater = new MenuItem(i => "Pass Heat: [" + GetLevel(E65Seats.PassengerSeat.HeaterLevel) + "]",
                                    i => E65Seats.ButtonHeaterPassengerPress(), MenuItemType.Button, MenuItemAction.Refresh);
     AddItem(driverHeater);
     AddItem(passengerHeater);
     AddItem(new MenuItem(i => "Activated", i => E65Seats.EmulatorPaused = !i.IsChecked, MenuItemType.Checkbox)
     {
         IsChecked = !E65Seats.EmulatorPaused
     });
     this.AddBackButton();
 }
コード例 #3
0
        protected virtual void SetItems()
        {
            ClearItems();


            AddItem(new MenuItem(i => "Front", i => E65Seats.MoveFrontPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Back", i => E65Seats.MoveBackPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Up", i => E65Seats.MoveUpPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Down", i => E65Seats.MoveDownPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Tilt Front", i => E65Seats.TiltFrontPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Tilt Back", i => E65Seats.TiltBackPress(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Memory", i => E65Seats.ButtonM(IsDriverSide), MenuItemType.Button));
            AddItem(new MenuItem(i => "Memory 1", i => E65Seats.ButtonM1(IsDriverSide), MenuItemType.Button));
            this.AddBackButton();
        }