Example #1
0
 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)
Example #2
0
 def hover_off(self, surf, button):
     draw(surf, self.menu_outline, button, 2)
     self.over = False
Example #3
0
 def draw(self, surf, button):
     draw(surf, self.menu_outline, button, 2)
     sprite_menu.draw(surf)
Example #4
0
 def hover(self, surf, button):
     draw(surf, self.menu_hover, button, 2)
     self.over = True
Example #5
0
 def draw(self, surf):
     draw(surf, self.menu_grey, self.menu)
     sprite_menu.draw(surf)