def select_match(self, match): match_height = self.get_match_height(match) controller.click_at(self.QUEUE_X, match_height) if self.is_bottom_match(match): self.current_scroll += 1
def queue_scroll_down(self): controller.click_at( self.QUEUE_SCROLL_X, self.QUEUE_START_Y + self.QUEUE_SPACING * (self.QUEUE_ELEMENTS_PER_WINDOW - 1)) self.current_scroll += 1
def queue_scroll_top(self): controller.click_at(self.QUEUE_SCROLL_X, self.QUEUE_START_Y + self.QUEUE_SPACING) self.current_scroll = self.DEFAULT_SCROLL_POSITION
def queue_scroll_up(self): controller.click_at(self.QUEUE_SCROLL_X, self.QUEUE_START_Y) if self.current_scroll > self.DEFAULT_SCROLL_POSITION: self.current_scroll -= 1
def toggle_qual_minimized(self): self.queue_scroll_top() controller.click_at(self.QUEUE_MINIMIZE_X, self.QUEUE_START_Y + self.QUEUE_SPACING * 2) self.queue_scroll_top()
def start_match(self): controller.click_at(self.START_X, self.START_Y)
def queue_match(self, match): match_height = self.get_match_height(match) controller.click_at(self.QUEUE_X, match_height, right=True) controller.click_at(self.QUEUE_X + self.QUEUE_BUTTON_OFFSET, match_height + self.QUEUE_BUTTON_OFFSET)
def save_scores(self, match): self.select_match(match) controller.click_at(self.SAVE_SCORE_X, self.SAVE_SCORE_Y)