From 2cc16b4edb90b2130a3c3cf466adc6fdb9b31009 Mon Sep 17 00:00:00 2001 From: Kuba Date: Sat, 8 May 2021 04:24:36 +0200 Subject: [PATCH] Fixed issue #4243 (#4527) --- data/gui/dialogs/race_paused_dialog.stkgui | 8 +++--- .../dialogs/race_paused_dialog.cpp | 25 ++++++++++++++++++- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/data/gui/dialogs/race_paused_dialog.stkgui b/data/gui/dialogs/race_paused_dialog.stkgui index 451d7102c..16a1919a5 100644 --- a/data/gui/dialogs/race_paused_dialog.stkgui +++ b/data/gui/dialogs/race_paused_dialog.stkgui @@ -7,7 +7,7 @@ + extend_label="200" I18N="Race paused button" raw_text="Text"/> @@ -17,10 +17,10 @@ + I18N="Race paused button" raw_text="Text" word_wrap="true"/> + I18N="Race paused button" raw_text="Text" word_wrap="true"/> @@ -32,7 +32,7 @@ I18N="Race paused button" text="Help" word_wrap="true"/> + I18N="Race paused button" raw_text="Text" word_wrap="true"/> diff --git a/src/states_screens/dialogs/race_paused_dialog.cpp b/src/states_screens/dialogs/race_paused_dialog.cpp index 603d87f4e..0a3365175 100644 --- a/src/states_screens/dialogs/race_paused_dialog.cpp +++ b/src/states_screens/dialogs/race_paused_dialog.cpp @@ -123,7 +123,30 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, { World::getWorld()->schedulePause(WorldStatus::IN_GAME_MENU_PHASE); } - + if (dynamic_cast(World::getWorld()) == NULL) + { + if (RaceManager::get()->isBattleMode() || RaceManager::get()->isCTFMode()) + { + getWidget("backbtn")->setLabel(_("Back to Battle")); + if (!NetworkConfig::get()->isNetworking()) + { + getWidget("newrace")->setLabel(_("Setup New Game")); + getWidget("restart")->setLabel(_("Restart Battle")); + } + getWidget("exit")->setLabel(_("Exit Battle")); + } + else + { + getWidget("backbtn")->setLabel(_("Back to Race")); + if (!NetworkConfig::get()->isNetworking()) + { + getWidget("newrace")->setLabel(_("Setup New Race")); + getWidget("restart")->setLabel(_("Restart Race")); + } + getWidget("exit")->setLabel(_("Exit Race")); + } + } + #ifndef MOBILE_STK if (m_text_box && UserConfigParams::m_lobby_chat) m_text_box->setFocusForPlayer(PLAYER_ID_GAME_MASTER);