示例#1
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
示例#2
0
	def show_editor_start_menu(self):
		editor_start_menu = EditorStartMenu(self.windows)
		self.windows.open(editor_start_menu)