Esempio n. 1
0
 protected override List <SettingsData> GetSettingsData()
 {
     return(new List <SettingsData>
     {
         SettingsData.Create("Rumble", ConfigTypes.OnOffSwitch, false,
                             updateBeforeConfirming: true),
         //@Debug: Need percent sign % in the font
         SettingsData.Create("Left Analog Dead Zone", ConfigTypes.Slider, 20,
                             formatString: "{0}%", rangeMin: 10, rangeMax: 80),
         SettingsData.Create("Button Icons", ConfigTypes.Number, (int)ButtonIcons.Xbox360,
                             rangeMin: 0, rangeMax: 1),
         SettingsData.Create("Keyboard Controls", ConfigTypes.SubSettings, ""),
         SettingsData.Create("Gamepad Controls", ConfigTypes.SubSettings, ""),
     });
 }
Esempio n. 2
0
 protected override List <SettingsData> GetSettingsData()
 {
     return(new List <SettingsData>
     {
         SettingsData.Create("Reset to Defaults", ConfigTypes.Button, ""),
         SettingsData.CreateCollection(
             new string[] { "Down", "Left", "Right", "Up",
                            "A\nSelect/Confirm", "B\nCancel", "Y\nCursor Speed", "X\nEnemy Range",
                            "L\nNext Unit", "R\nStatus", "Start\nSkip/Map", "Select\nMenu" },
             ConfigTypes.Keyboard,
             new Keys[] { Keys.NumPad2, Keys.NumPad4, Keys.NumPad6, Keys.NumPad8,
                          Keys.X, Keys.Z, Keys.D, Keys.C,
                          Keys.A, Keys.S, Keys.Enter, Keys.RightShift }),
     });
 }
Esempio n. 3
0
        protected override List <SettingsData> GetSettingsData()
        {
            return(new List <SettingsData>
            {
                SettingsData.Create("Master Volume", ConfigTypes.Slider, 7,
                                    rangeMin: 0, rangeMax: 10, updateBeforeConfirming: true),
                SettingsData.Create("Music Volume", ConfigTypes.Slider, 10,
                                    rangeMin: 0, rangeMax: 10, updateBeforeConfirming: true),
                SettingsData.Create("Sound Volume", ConfigTypes.Slider, 10,
                                    rangeMin: 0, rangeMax: 10, updateBeforeConfirming: true),
#if !__MOBILE__
                SettingsData.Create("Mute When Inactive", ConfigTypes.OnOffSwitch, false)
#else
                new NullSettingsData()
#endif
            });
Esempio n. 4
0
        protected override List <SettingsData> GetSettingsData()
        {
            return(new List <SettingsData>
            {
                SettingsData.Create("Reset to Defaults", ConfigTypes.Button, ""),
                SettingsData.CreateCollection(
                    new string[] { "Down", "Left", "Right", "Up",
                                   "A\nSelect/Confirm", "B\nCancel", "Y\nCursor Speed", "X\nEnemy Range",
                                   "L\nNext Unit", "R\nStatus", "Start\nSkip/Map", "Select\nMenu" },
                    ConfigTypes.Gamepad,
                    new Buttons[] { Buttons.DPadDown, Buttons.DPadLeft, Buttons.DPadRight, Buttons.DPadUp,
#if __ANDROID__
                                    Buttons.Back,
#else
                                    Buttons.A,
#endif
                                    Buttons.B, Buttons.X, Buttons.Y,
                                    Buttons.LeftShoulder, Buttons.RightShoulder, Buttons.Start,
#if __ANDROID__
                                    Buttons.A
#else
                                    Buttons.Back
#endif
                    }),