Exemple #1
0
 def show_save_map_dialog(self):
     """Shows a dialog where the user can set the name of the saved map."""
     window = SelectSavegameDialog('editor-save', self.windows)
     savegamename = self.windows.open(window)
     if savegamename is None:
         return False  # user aborted dialog
     success = self.session.save(savegamename)
     if success:
         self.message_widget.add('SAVED_GAME')
Exemple #2
0
 def show_select_savegame(self, mode):
     window = SelectSavegameDialog(mode, self.windows)
     return self.windows.show(window)