diff --git a/data/po/supertuxkart.pot b/data/po/supertuxkart.pot index 5ddb09ded..59db9b39a 100644 --- a/data/po/supertuxkart.pot +++ b/data/po/supertuxkart.pot @@ -788,6 +788,10 @@ msgstr "" msgid "Continue" msgstr "" +#: src/states_screens/dialogs/gp_info_dialog.cpp:156 +msgid "Continue Grand Prix" +msgstr "" + #. I18N: ./data/gui/options_input.stkgui #. I18N: Section in the settings menu #. I18N: ./data/gui/options_device.stkgui @@ -1901,7 +1905,7 @@ msgstr "" msgid "Start Game" msgstr "" -#: src/states_screens/dialogs/gp_info_dialog.cpp:146 +#: src/states_screens/dialogs/gp_info_dialog.cpp:158 msgid "Start Grand Prix" msgstr "" @@ -2039,7 +2043,7 @@ msgid "" "all highscores have been erased." msgstr "" -#: src/states_screens/dialogs/gp_info_dialog.cpp:151 +#: src/states_screens/dialogs/gp_info_dialog.cpp:163 msgid "This Grand Prix is broken!" msgstr "" diff --git a/src/states_screens/dialogs/gp_info_dialog.cpp b/src/states_screens/dialogs/gp_info_dialog.cpp index 395bc5ee5..da211e4b2 100644 --- a/src/states_screens/dialogs/gp_info_dialog.cpp +++ b/src/states_screens/dialogs/gp_info_dialog.cpp @@ -19,6 +19,7 @@ #include "audio/sfx_manager.hpp" #include "challenges/unlock_manager.hpp" +#include "config/saved_grand_prix.hpp" #include "guiengine/engine.hpp" #include "guiengine/screen.hpp" #include "guiengine/widgets/button_widget.hpp" @@ -140,10 +141,21 @@ GPInfoDialog::GPInfoDialog(const std::string& gpIdent, const float w, const floa // ---- Start button ButtonWidget* okBtn = new ButtonWidget(); + SavedGrandPrix* saved_gp = SavedGrandPrix::getSavedGP( StateManager::get() + ->getActivePlayerProfile(0) + ->getUniqueID(), + gpIdent, + race_manager->getDifficulty(), + race_manager->getNumberOfKarts(), + race_manager->getNumLocalPlayers()); + if (gp_ok) { okBtn->m_properties[PROP_ID] = "start"; - okBtn->setText(_("Start Grand Prix")); + if (saved_gp) + okBtn->setText(_("Continue Grand Prix")); + else + okBtn->setText(_("Start Grand Prix")); } else {