- self._menu = [
- TextButton("Play", action=self.change_to_level),
- TextButton("View Last Generated Level",
- action=self.change_to_viewer),
- TextButton("Manage Roaches", action=self.change_to_roaches),
- TextButton("Credits", action=self.change_to_credits),
- TextButton("Quit", action=self.quit),
+ menu = [
+ self._build_button("new_game", action=self.change_to_new_game),
+ self._build_button("resume_game", action=self.change_to_resume),
+ self._build_button("credits", action=self.change_to_credits),
+ self._build_button("quit", action=self.quit),