Esempio n. 1
0
	def load_game(self):
		saved_game = self.show_select_savegame(mode='load')
		if saved_game is None:
			return False # user aborted dialog

		options = StartGameOptions(saved_game)
		horizons.main.start_singleplayer(options)
		return True
Esempio n. 2
0
    def _load_game(self):
        if self._in_editor_mode:
            editor_start_menu = EditorStartMenu(self._windows)
            self._windows.show(editor_start_menu)
        else:
            window = SelectSavegameDialog('load', self._windows)
            saved_game = self._windows.show(window)
            if saved_game is None:
                return

            options = StartGameOptions(saved_game)
            horizons.main.start_singleplayer(options)
            return True