Exemple #1
0
        public SticksSettingsContainer()
        {
            SetSpacing(30, 0);
            SetPadding(10, 10, 10, 10);
            SetMargin(10, 10, 10, 10);

            _leftStickLayout  = new VerticalStack();
            _rightStickLayout = new VerticalStack();
            _lLabel           = Items.GetHeaderLabel(Controller.GetLanguage()["LeftStickSettings"]);
            _lLabel.SetMargin(0, 0, 0, 20);
            _rLabel = Items.GetHeaderLabel(Controller.GetLanguage()["RightStickSettings"]);
            _rLabel.SetMargin(0, 0, 0, 20);
            _lSpeedSlider        = new SpeedSlider(Controller.GetLanguage()["LeftStickSpeed"]);
            _rSpeedSlider        = new SpeedSlider(Controller.GetLanguage()["RightStickSpeed"]);
            _lStickAssignment    = new NamedComboBox(Controller.GetLanguage()["AssignStick"]);
            _rStickAssignment    = new NamedComboBox(Controller.GetLanguage()["AssignStick"]);
            _lDynamicSensitivity = Items.GetSwitcher(Controller.GetLanguage()["StickDynamicSens"],
                                                     Controller.GetProfile().LeftThumbStickAcceleration);
            _rDynamicSensitivity = Items.GetSwitcher(Controller.GetLanguage()["StickDynamicSens"],
                                                     Controller.GetProfile().RightThumbStickAcceleration);
            _lArrows    = Items.GetListItem(Controller.GetLanguage()["StickActionArrows"]);
            _rArrows    = Items.GetListItem(Controller.GetLanguage()["StickActionArrows"]);
            _lMouseMove = Items.GetListItem(Controller.GetLanguage()["StickActionMouseMove"]);
            _rMouseMove = Items.GetListItem(Controller.GetLanguage()["StickActionMouseMove"]);
        }
Exemple #2
0
        public CommonSettingsContainer()
        {
            SetSpacing(0, 10);
            SetPadding(10, 10, 10, 0);
            SetMargin(10, 10, 10, 10);

            _addProfile    = Items.GetImagedButton(Resources.PlusIcon);
            _copyProfile   = Items.GetImagedButton(Resources.CopyIcon);
            _removeProfile = Items.GetImagedButton(Resources.ClearIcon);

            _autoLaunchAppCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsAutoLaunch"],
                                                       Controller.GetSettings().AutoLaunchOnSystemStartUp);
            _startMinimizedCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsStartMinimized"],
                                                        Controller.GetSettings().StartAppMinimized);
            _autoStartCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsAutoStart"],
                                                   Controller.GetSettings().AutoStart);

            _languageList = new NamedComboBox(Controller.GetLanguage()["SetsLanguage"]);
            foreach (var loc in Controller.GetLocalizations())
            {
                _languageList.AddItem(Items.GetListItem(loc.Key));
            }

            _profileList = new NamedComboBox(Controller.GetLanguage()["SetsProfile"]);
            foreach (var profile in Controller.GetAllProfiles())
            {
                _profileList.AddItem(Items.GetListItem(profile.Name));
            }

            _miMode0 = Items.GetListItem(Controller.GetLanguage()["SetsIMode0"]);
            _miMode1 = Items.GetListItem(Controller.GetLanguage()["SetsIMode1"]);
            _miMode2 = Items.GetListItem(Controller.GetLanguage()["SetsIMode2"]);

            _inputModeList = new NamedComboBox(Controller.GetLanguage()["SetsInput"]);
            _inputModeList.AddItem(_miMode0);
            _inputModeList.AddItem(_miMode1);
            _inputModeList.AddItem(_miMode2);

            _headerTitle   = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsCommon"]);
            _headerProfile = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsProfile"]);
            _headerLocale  = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsLocalization"]);
        }