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()
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()
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
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