This commit is contained in:
Alayan 2019-10-21 22:49:54 +02:00
parent 2adeb7334e
commit b4b346e7a6
2 changed files with 7 additions and 4 deletions

View File

@ -24,10 +24,10 @@
<spacer height="3%" width="1"/>
<buttonbar id="actions" height="20%" width="30%" align="center">
<icon-button id="back" icon="gui/icons/back.png"
width="128" height="128" text="Back"/>
<icon-button id="start" icon="gui/icons/green_check.png"
width="128" height="128" text="Start Race"/>
<icon-button id="back" icon="gui/icons/back.png"
width="128" height="128" text="Back"/>
</buttonbar>
</div>

View File

@ -182,8 +182,7 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth,
track_manager->getTrack(c->getData()->getTrackId())->getName();
getWidget<LabelWidget>("title")->setText(track_name, true);
}
if (PlayerManager::getCurrentPlayer()->isLocked("difficulty_best"))
{
@ -195,6 +194,10 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth,
getWidget<IconButtonWidget>("supertux")->unsetBadge(LOCKED_BADGE);
getWidget<IconButtonWidget>("supertux")->setActive(true);
}
GUIEngine::RibbonWidget* actions =
getWidget<GUIEngine::RibbonWidget>("actions");
actions->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
}
// ----------------------------------------------------------------------------