def loadGame(self):
     """ Called when the user wants to load a game.
         @return: None"""
     load_browser = FileBrowser(self.engine,
                                self.load_game_callback,
                                save_file=False,
                                gui_xml_path='gui/loadbrowser.xml',
                                extensions=('.dat'))
     load_browser.showBrowser()
示例#2
0
文件: hud.py 项目: m64/PEG
 def saveGame(self):
     """ Called when the user wants to save the game.
         @return: None"""
     save_browser = FileBrowser(self.engine,
                                self.save_game_callback,
                                save_file=True,
                                gui_xml_path="gui/savebrowser.xml",
                                extensions = ('.dat'))
     save_browser.showBrowser()
示例#3
0
 def loadGame(self):
     """ Called when the user wants to load a game.
         @return: None"""
     self.stopActions()
     load_browser = FileBrowser(self.engine,
                                self.load_game_callback,
                                close_callback = self.loadsave_close,
                                save_file=False,
                                gui_xml_path='gui/loadbrowser.xml',
                                extensions=('.dat'))
     load_browser.showBrowser()
     self.model.pause(True)
     self.controller.pause(True)
     self.enabled = False
示例#4
0
 def saveGame(self):
     """ Called when the user wants to save the game.
         @return: None"""
     self.stopActions()
     save_browser = FileBrowser(self.engine,
                                self.save_game_callback,
                                self.loadsave_close,
                                save_file=True,
                                gui_xml_path="gui/savebrowser.xml",
                                extensions = ('.dat'))
     save_browser.showBrowser()
     self.controller.pause(True)
     self.model.pause(True)
     self.enabled = False