+ def enter(self, gamestate):
+ if gamestate.station is None:
+ print "Loading Station Alpha ..."
+ gamestate.set_station(loader.load_station("station-alpha.json"))
+ font_title = loader.load_font(FONTS['bold'], size=32)
+ self._title = font_title.render('A Game with a title', True,
+ (255, 255, 255))
+ self._cont_but = TextButton("Continue / Retry", (255, 255, 255),
+ name='continue')
+ if not save_file_exists():
+ self._cont_but.disable()
+ self._menu = [
+ TextButton("New Game", (255, 255, 255), name='new game'),
+ self._cont_but,
+ TextButton("Help", (255, 255, 255), name='help'),
+ SpacerButton((50, 30)),
+ TextButton("Quit", (255, 255, 255), name='quit'),
+ ]
+