Exemplo n.º 1
0
 //private Tile selectedTile = null;
 //initialize everything here, Game is loaded at this point
 public ControllerSupport()
 {
     Console.WriteLine("Loaded mod ControllerSupport");
     controllerBindings = new ControllerKeyBindings ();
     configManager = new ConfigManager (this.OwnFolder (), controllerBindings);
     controllerBindings.SetUsePS3 (configManager.UsingPS3 ());
     popups = new PopupsWrapper (App.Popups);
 }
 public SettingsMenuWrapper(ConfigManager configManager, ConfigGUI configGUI)
 {
     this.configManager = configManager;
     this.configGUI = configGUI;
     usePS3 = configManager.UsingPS3 ();
     osType = OsSpec.getOS ();
     settingsSkin = (GUISkin)Resources.Load ("_GUISkins/Settings");
     regularUI = (GUISkin)Resources.Load ("_GUISkins/RegularUI");
 }
Exemplo n.º 3
0
        public ConfigGUI(ConfigManager configManager, int version)
        {
            this.configManager = configManager;

            if (configManager.IsNewInstall ()) {
                if (OsSpec.getOS () == OSType.OSX) {
                    App.Popups.ShowOkCancel (this, "choose_controller", "Welcome to ControllerSupport", "Control the game and the Arena menu with your controller!\n\nThis mod support PS3 controllers on OSX natively and Xbox 360 controllers with the Taggiebogle driver.\n\nWhat Controller would you like to use?\n(Change this or review controls in the Settings or ingame menu)", "Xbox 360", "PS3");
                } else {
                    App.Popups.ShowOk(this, "new_install", "Welcome to ControllerSupport", "Control the game and the Arena menu with your controller!\n\nThis mod supports Xbox 360 controllers natively and PS3 controllers through MotionJoy (set to Xbox Emulator mode).\n\nReview the controls at any time in the Settings or ingame menu.", "Controls");
                }
            } else if (configManager.IsNewVersion (version)) {
                if (OsSpec.getOS () == OSType.OSX && configManager.UsingPS3 ()) {
                    App.Popups.ShowOk (this, "updated_install", "ControllerSupport has been updated!", "ControllerSupport has been updated to work with the latest version!", "Ok");
                } else {
                    App.Popups.ShowOk (this, "updated_install", "ControllerSupport has been updated!", "ControllerSupport has been updated to work with the latest version!", "Ok");
                }
                //Console.WriteLine ("ControllerSupport: ConfigManager: New version detected!");
            } else {
                //Console.WriteLine ("ControllerSupport: ConfigManager: Version up to date!");
            }
        }