Example #1
0
 def update_ghost_distances(self, distances):
     """Update the ghost distances display."""
     if len(distances) == 0:
         return
     if 'ghost_distance_text' not in dir(self):
         self.initialize_ghost_distances(distances)
     else:
         for i, d in enumerate(distances):
             gu.change_text(self.ghost_distance_text[i], d)
Example #2
0
 def update_score(self, score):
     """Update the score display."""
     gu.change_text(self.score_text, "SCORE: % 4d" % score)
 def update_blue_text(self, score):
     """Update the text for the blue team."""
     gu.change_text(self.blue_text, self._blue_score_string())
 def update_score(self, score, timeleft):
     """Update the score and time left display."""
     gu.change_text(self.score_text, self._info_string(score, timeleft))
 def update_red_text(self, score):
     """Update the text for the red team."""
     gu.change_text(self.red_text, self._red_score_string())