LoadSettings() public method

public LoadSettings ( ) : void
return void
Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            if (Version_Label != null) Version_Label.Content = "v0.6";

            INIstuff = new INIsettings(this, 2); // Set INI version here

            for (int i = 0; i < 24; i++)
                RemapSet[0, i] = RemapSet[1, i] = RemapSet[2, i] = RemapSet[3, i] = i;

            INIstuff.LoadSettings();

            RemapControl = new List<Remap_Sel_Button>
            {
                R_Dpad_Up, R_Dpad_Down, R_Dpad_Left, R_Dpad_Right, R_Button_Start, R_Button_Back,
                R_LeftStick_Button, R_RightStick_Button, R_Shoulder_Left, R_Shoulder_Right,
                R_Button_A, R_Button_B, R_Button_X, R_Button_Y, R_Trigger_Left, R_Trigger_Right,
                R_LeftStick_XP, R_LeftStick_XM, R_LeftStick_YP, R_LeftStick_YM,
                R_RightStick_XP, R_RightStick_XM, R_RightStick_YP, R_RightStick_YM
            };

            for (int i = 0; i < 24; i++)
                RemapControl[i].SetNewInput(RemapSet[curPad, i]);

            for (curPad = 0; curPad < 4; curPad++) SetDefaults();
            curPad = 0;

            INIstuff.SaveSettings();

            UpdateControls();
        }
Beispiel #2
0
        public MainWindow()
        {
            settings = new List <SETTINGS> {
                new SETTINGS(), new SETTINGS(), new SETTINGS(), new SETTINGS()
            };
            curSet = settings[curPad];

            InitializeComponent();
            GridStickR_Hide();
            BtnSettings.BorderBrush = new SolidColorBrush(Colors.White);

            if (Version_Label != null)
            {
                Version_Label.Content = "v0.6 ";
            }

            INIstuff = new INIsettings(this, 4);             // Set INI version here
            INIstuff.LoadSettings();
            INIstuff.SaveSettings();

            RemapControl = new List <Remap_Sel_Button>
            {
                R_Dpad_Up, R_Dpad_Down, R_Dpad_Left, R_Dpad_Right, R_Button_Start, R_Button_Back,
                R_LeftStick_Button, R_RightStick_Button, R_Shoulder_Left, R_Shoulder_Right,
                R_Button_A, R_Button_B, R_Button_X, R_Button_Y, R_Trigger_Left, R_Trigger_Right,
                R_LeftStick_XP, R_LeftStick_XM, R_LeftStick_YP, R_LeftStick_YM,
                R_RightStick_XP, R_RightStick_XM, R_RightStick_YP, R_RightStick_YM
            };

            for (int i = 0; i < 24; i++)
            {
                RemapControl[i].SetNewInput(curSet.remap[i]);
            }

            UpdateControls();

            System.ComponentModel.BackgroundWorker worker1 = new System.ComponentModel.BackgroundWorker();
            worker1.WorkerReportsProgress = true;
            worker1.DoWork          += worker1_DoWork;
            worker1.ProgressChanged += worker1_ProgressChanged;
            worker1.RunWorkerAsync();
        }
Beispiel #3
0
        public MainWindow()
        {
            settings = new List<SETTINGS> { new SETTINGS(), new SETTINGS(), new SETTINGS(), new SETTINGS()};
            curSet = settings[curPad];

            InitializeComponent();
            GridStickR_Hide();
            BtnSettings.BorderBrush = new SolidColorBrush(Colors.White);

            if (Version_Label != null) Version_Label.Content = "v0.6 ";

            INIstuff = new INIsettings(this, 3); // Set INI version here
            INIstuff.LoadSettings();
            INIstuff.SaveSettings();

            RemapControl = new List<Remap_Sel_Button>
            {
                R_Dpad_Up, R_Dpad_Down, R_Dpad_Left, R_Dpad_Right, R_Button_Start, R_Button_Back,
                R_LeftStick_Button, R_RightStick_Button, R_Shoulder_Left, R_Shoulder_Right,
                R_Button_A, R_Button_B, R_Button_X, R_Button_Y, R_Trigger_Left, R_Trigger_Right,
                R_LeftStick_XP, R_LeftStick_XM, R_LeftStick_YP, R_LeftStick_YM,
                R_RightStick_XP, R_RightStick_XM, R_RightStick_YP, R_RightStick_YM
            };

            for (int i = 0; i < 24; i++)
                RemapControl[i].SetNewInput(curSet.remap[i]);

            UpdateControls();

            System.ComponentModel.BackgroundWorker worker1 = new System.ComponentModel.BackgroundWorker();
            worker1.WorkerReportsProgress = true;
            worker1.DoWork += worker1_DoWork;
            worker1.ProgressChanged += worker1_ProgressChanged;
            worker1.RunWorkerAsync();
        }