Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
    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
Example #5
0
 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()
Example #6
0
 def start_match(self):
     controller.click_at(self.START_X, self.START_Y)
Example #7
0
 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)
Example #8
0
 def save_scores(self, match):
     self.select_match(match)
     controller.click_at(self.SAVE_SCORE_X, self.SAVE_SCORE_Y)