Dialogue when saving

This commit is contained in:
simon.kagstrom 2010-02-24 20:33:19 +00:00
parent 42ef9f67c6
commit dc10b6d1a6
3 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,17 @@ const char *exit_dialogue_messages[8] = {
NULL NULL
}; };
const char *save_state_done[8] = {
/*00*/ "Game state saved!",
/*01*/ "#",
/*02*/ "#", /* Empty line */
/*03*/ "#",
/*04*/ "#",
/*05*/ "#",
/*06*/ "^|OK",
NULL
};
const char *network_port_dialogue_messages[8] = { const char *network_port_dialogue_messages[8] = {
/*00*/ "Please supply a number as", /*00*/ "Please supply a number as",
/*01*/ "network port.", /*01*/ "network port.",

View File

@ -21,5 +21,6 @@ extern const char *broken_theme_dlg[];
extern const char *select_analogue_dlg[]; extern const char *select_analogue_dlg[];
extern const char *game_info_bad_year_dlg[]; extern const char *game_info_bad_year_dlg[];
extern const char *game_info_bad_number_dlg[]; extern const char *game_info_bad_number_dlg[];
extern const char *save_state_done[];
#endif #endif

View File

@ -175,6 +175,8 @@ void SaveGameView::saveSnapshot()
Gui::gui->saveGameInfo(Gui::gui->save_game_path, out_name); Gui::gui->saveGameInfo(Gui::gui->save_game_path, out_name);
ThePrefs.Save(prefs_name); ThePrefs.Save(prefs_name);
Gui::gui->pushDialogueBox(new DialogueBox(save_state_done));
free(save); free(save);
free(prefs_name); free(prefs_name);
} }