class, resolution, game, name='Monster Menu')


A class to create monster menu objects. The monster menu allows you to view monsters in your party, teach them moves, and switch them both in and out of combat.

  • screen (pygame.display) – The pygame.display surface to draw the menu to.
  • resolution (Tuple) – A tuple of the display’s resolution in (x, y) format. TODO: We should be able to get this from pygame.display
  • game (core.control.Control) – The main tuxemon game object that contains all the game’s variables.

To create a new menu, simply create a new menu instance and then set the size and coordinates of the menu like this:


>>> monster_menu = MonsterMenu(screen, resolution, self)
>>> monster_menu.size_x = 200
>>> monster_menu.size_y = 100
>>> monster_menu.pos_x = 500
>>> monster_menu.pos_y = 500
>>> monster_menu.draw()
draw(draw_borders=False, fill_background=False)
get_event(event, game)