Exemple #1
0
        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();
        }