From dc10b6d1a6f4c8382f1babd052c4de1fb1a69ca2 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Wed, 24 Feb 2010 20:33:19 +0000 Subject: [PATCH] Dialogue when saving --- Src/gui/menu_messages.c | 11 +++++++++++ Src/gui/menu_messages.hh | 1 + Src/gui/save_game_menu.cpp | 2 ++ 3 files changed, 14 insertions(+) diff --git a/Src/gui/menu_messages.c b/Src/gui/menu_messages.c index ffda2e6..dfb8d97 100644 --- a/Src/gui/menu_messages.c +++ b/Src/gui/menu_messages.c @@ -13,6 +13,17 @@ const char *exit_dialogue_messages[8] = { 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] = { /*00*/ "Please supply a number as", /*01*/ "network port.", diff --git a/Src/gui/menu_messages.hh b/Src/gui/menu_messages.hh index b39c8a9..7692abb 100644 --- a/Src/gui/menu_messages.hh +++ b/Src/gui/menu_messages.hh @@ -21,5 +21,6 @@ extern const char *broken_theme_dlg[]; extern const char *select_analogue_dlg[]; extern const char *game_info_bad_year_dlg[]; extern const char *game_info_bad_number_dlg[]; +extern const char *save_state_done[]; #endif diff --git a/Src/gui/save_game_menu.cpp b/Src/gui/save_game_menu.cpp index f9dd00b..d52da8d 100644 --- a/Src/gui/save_game_menu.cpp +++ b/Src/gui/save_game_menu.cpp @@ -175,6 +175,8 @@ void SaveGameView::saveSnapshot() Gui::gui->saveGameInfo(Gui::gui->save_game_path, out_name); ThePrefs.Save(prefs_name); + Gui::gui->pushDialogueBox(new DialogueBox(save_state_done)); + free(save); free(prefs_name); }