diff --git a/data/gui/dialogs/select_challenge_nobest.stkgui b/data/gui/dialogs/select_challenge_nobest.stkgui deleted file mode 100644 index 96b6da1e4..000000000 --- a/data/gui/dialogs/select_challenge_nobest.stkgui +++ /dev/null @@ -1,32 +0,0 @@ - - -
- -
- - - - - - - - - - - -
-
diff --git a/src/states_screens/dialogs/select_challenge.cpp b/src/states_screens/dialogs/select_challenge.cpp index c5b7bf43a..cffa8eb41 100644 --- a/src/states_screens/dialogs/select_challenge.cpp +++ b/src/states_screens/dialogs/select_challenge.cpp @@ -120,10 +120,7 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth, std::string challenge_id) : ModalDialog(percentWidth, percentHeight) { - if (PlayerManager::getCurrentPlayer()->isLocked("difficulty_best")) - loadFromFile("select_challenge_nobest.stkgui"); - else - loadFromFile("select_challenge.stkgui"); + loadFromFile("select_challenge.stkgui"); m_challenge_id = challenge_id; World::getWorld()->schedulePause(WorldStatus::IN_GAME_MENU_PHASE); @@ -185,6 +182,19 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth, track_manager->getTrack(c->getData()->getTrackId())->getName(); getWidget("title")->setText(track_name, true); } + + + + if (PlayerManager::getCurrentPlayer()->isLocked("difficulty_best")) + { + getWidget("supertux")->setBadge(LOCKED_BADGE); + getWidget("supertux")->setActive(false); + } + else + { + getWidget("supertux")->unsetBadge(LOCKED_BADGE); + getWidget("supertux")->setActive(true); + } } // ----------------------------------------------------------------------------