def render_step(self, i, step): color = COLOR_WHITE if self.parent.world.running and i == self.parent.world.running_action: color = COLOR_YELLOW font = constants.get_font(24) display = "%d. %s" % (i, step) text = font.render(display, True, color) if i > 10: self.image.blit(text, (200, (i-11)*30)) else: self.image.blit(text, (20, i*30))
def render_text(self): font = constants.get_font(TITLE_SIZE) text = font.render("Actions to Run", True, COLOR_WHITE) self.image.blit(text, (10, 10))