def click(self, surf, button, down): self.state = down if down: draw(surf, (130, 130, 130, 30), button) draw(surf, self.menu_hover, button, 2) surf.blit(self.basic_tower_sprite.image, (32, 32)) else: self.draw(surf)
def hover_off(self, surf, button): draw(surf, self.menu_outline, button, 2) self.over = False
def draw(self, surf, button): draw(surf, self.menu_outline, button, 2) sprite_menu.draw(surf)
def hover(self, surf, button): draw(surf, self.menu_hover, button, 2) self.over = True
def draw(self, surf): draw(surf, self.menu_grey, self.menu) sprite_menu.draw(surf)