def __init__(self, moveset, position): ButtonContainer.__init__( self, position, PAUSE_MENU_HEIGHT, PAUSE_MENU_WIDTH, moveset.name + " Move List", AttackLabel, self.get_button_args(moveset) ) self.init_button_text() self.set_dimensions() self.layout_buttons() self.reset_scroll()
def draw(self, surface): #return_surface = pygame.Surface((PAUSE_MENU_HEIGHT, PAUSE_MENU_WIDTH)) rect = pygame.Rect( self.position, (self.width, self.height) ) gamestate.new_dirty_rects.append(rect) pygame.draw.rect( surface, (50,50,50), rect, 1 ) ButtonContainer.draw(self, surface) pygame.draw.rect( surface, (255,255,255), rect, 1 )