public NameConfigurer(DolphinAsyncController controller) { this.controller = controller; defineStringAt(" @()^:;", 0, 0); defineStringAt("ABCabc", 1, 0); defineStringAt("DEFdef", 2, 0); defineStringAt("GHIghi", 0, 1); defineStringAt("JKLjkl", 1, 1); defineStringAt("MNOmno", 2, 1); defineStringAt("PQRSpqrs", 0, 2); defineStringAt("TUVtuv", 1, 2); defineStringAt("WXYZwxyz", 2, 2); defineStringAt("!?&%", 0, 3); defineStringAt("-,./~", 1, 3); }
public VerticalMenuCursor(DolphinAsyncController controller, int menuElements, int initialPosition = 1) { this.controller = controller; this.menuElements = menuElements; this.currentPosition = initialPosition; this.initialPosition = initialPosition; }
public MeleeStageCursor(DolphinAsyncController controller) : base(controller, BOUNDS) { this.controller = controller; reset(); rand = new Random(); }
public async Task confirm(MeleeStates states, DolphinAsyncController controller) { Bitmap portrait = states.dolphinWindowCapturer.captureCPUTournamentPortrait(); Character newCharacter = states.imageMatcher.findCharacterInTournament(portrait); controller.press(DolphinButton.A); MenuCursor menuCursor = new MenuCursor(controller, new Point(5, 5), currentCharacter.tournamentPosition); await menuCursor.moveTo(newCharacter.tournamentPosition); await controller.press(DolphinButton.A).then().press(DolphinPOVButton.RIGHT).then().press(DolphinButton.A).execute(); // Ici le textMenuCursor ! await controller.press(DolphinButton.B).then().press(DolphinPOVButton.LEFT).execute(); }
public Tester() { InitializeComponent(); controllers = new DolphinAsyncController[] { new DolphinAsyncController(new vJoyController(1)), new DolphinAsyncController(new vJoyController(2)) }; dolphinCapturer = new DolphinWindowCapture(); mainController = controllers[0]; startMenu = new MeleeBoot(controllers); states = startMenu.meleeStates; menuSelector = states.menuSelector; stageCursor = new MeleeStageCursor(mainController); manager = new CharactersManager(); autoUpdateToggle.Checked = true; }
public GamecubeControllerConfigurer(DolphinAsyncController controller) { this.controller = controller; this.ButtonsCommands = new List<Command>() { Command.Attack, Command.Special, Command.Jump, Command.Shield, Command.Grab, Command.UpTaunt, Command.SideTaunt, Command.DownTaunt, Command.None }; this.CStickCommands = new List<Command>() { Command.Attack, Command.Special, Command.Jump, Command.Shield, Command.Grab, Command.Smash, Command.None }; this.LMapping = new ButtonMapper(controller, ButtonsCommands, Command.Shield); this.RMapping = new ButtonMapper(controller, ButtonsCommands, Command.Shield); this.ZMapping = new ButtonMapper(controller, ButtonsCommands, Command.Grab); this.YMapping = new ButtonMapper(controller, ButtonsCommands, Command.Jump); this.XMapping = new ButtonMapper(controller, ButtonsCommands, Command.Jump); this.AMapping = new ButtonMapper(controller, ButtonsCommands, Command.Attack); this.BMapping = new ButtonMapper(controller, ButtonsCommands, Command.Special); this.CStickMapping = new ButtonMapper(controller, CStickCommands, Command.Smash); this.UpMapping = new ButtonMapper(controller, ButtonsCommands, Command.UpTaunt); this.SideMapping = new ButtonMapper(controller, ButtonsCommands, Command.SideTaunt); this.DownMapping = new ButtonMapper(controller, ButtonsCommands, Command.DownTaunt); }
public MeleeBoot(DolphinAsyncController[] controllers) { this.meleeStates = new MeleeStates(this, controllers); this.controller = this.meleeStates.mainController; }
public InitialSetup(DolphinAsyncController controller) { this.controller = controller; }
public MeleeCharacterCursor(DolphinAsyncController controller, int initialPlayer) : base(controller, BOUNDS) { this.controller = controller; this.player = initialPlayer; reset(); }
public ButtonMapper(DolphinAsyncController controller, List<Command> commands, Command defaultCommand) { this.controller = controller; this.commands = commands; this.position = commands.IndexOf(defaultCommand); }
public MenuCursor(DolphinAsyncController controller, Point menuElements, Point initialPosition) : base(controller, menuElements.Y, initialPosition.Y) { this.menuElementsX = menuElements.X; this.currentPositionX = initialPosition.X; this.initialPositionX = initialPosition.X; }
public MeleePortrait(DolphinAsyncController controller, int player) { this.controller = controller; this.cursor = new MeleeCharacterCursor(controller, player); this.currentState = PortraitState.NA; }
public MeleeCursor(DolphinAsyncController controller, Rectangle bounds) { this.controller = controller; this.bounds = bounds; }
public ProjectMAutomator() { InitializeComponent(); controller = new DolphinAsyncController(new vJoyController(1), 50, 20); }
public ProjectMNamesAutomator(DolphinAsyncController controller) { this.controller = controller; this.client = new MongoClient(MongoResources.mongourl); var db = client.GetDatabase(MongoResources.database); this.collection = db.GetCollection<GamecubeControllerConfig>(MongoResources.controllersCollection); InitializeComponent(); configList.DisplayMember = "Name"; configList.ValueMember = "config"; }