elif current_class == 1: PygameButton(game_display, left_arm_position, (0, 255, 0), font, "Left Hand", (255, 255, 255)) PygameButton(game_display, right_arm_position, (0, 0, 255), font, "Right Hand", (255, 255, 255)) PygameButton(game_display, legs_position, (0, 0, 255), font, "Legs", (255, 255, 255)) elif current_class == 2: PygameButton(game_display, left_arm_position, (0, 0, 255), font, "Left Hand", (255, 255, 255)) PygameButton(game_display, right_arm_position, (0, 255, 0), font, "Right Hand", (255, 255, 255)) PygameButton(game_display, legs_position, (0, 0, 255), font, "Legs", (255, 255, 255)) elif current_class == 3: PygameButton(game_display, left_arm_position, (0, 0, 255), font, "Left Hand", (255, 255, 255)) PygameButton(game_display, right_arm_position, (0, 0, 255), font, "Right Hand", (255, 255, 255)) PygameButton(game_display, legs_position, (0, 255, 0), font, "Legs", (255, 255, 255)) for event in pygame.event.get(): if event.type == pygame.MOUSEBUTTONUP: if pause_button.is_pushed(): bci.set_new_class(None) continue_button = PygameButton(game_display, pause_button_position, (255, 0, 0), font, "Continue", (255, 255, 255)) pygame.display.update() pause = True while pause: for event in pygame.event.get(): if event.type == pygame.MOUSEBUTTONUP: if continue_button.is_pushed(): pause = False pause_button = PygameButton(game_display, pause_button_position, (255, 0, 0), font, "Pause", (255, 255, 255)) pygame.display.update() bci.restart() start_time = time.time() continue