The game mode widget locks don't have blocky corners anymore.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
fe346918d8
commit
f640d64467
@ -44,35 +44,39 @@ GameMode::GameMode()
|
||||
widget_manager->switchOrder();
|
||||
widget_manager->addTitleWgt(WTOK_TITLE, 60, 7, _("Choose a Race Mode"));
|
||||
|
||||
widget_manager->addTextButtonWgt( WTOK_GP, 60, 7, _("Grand Prix"));
|
||||
|
||||
if(unlock_manager->isLocked("grandprix"))
|
||||
{
|
||||
const Material *m = material_manager->getMaterial("gui_lock.rgb", false);
|
||||
widget_manager->addImgWgt(WTOK_GP, 60, 7,
|
||||
m->getState()->getTextureHandle() );
|
||||
}
|
||||
else
|
||||
{
|
||||
widget_manager->addTextButtonWgt( WTOK_GP, 60, 7, _("Grand Prix"));
|
||||
widget_manager->hideWgtText( WTOK_GP );
|
||||
widget_manager->deactivateWgt( WTOK_GP );
|
||||
|
||||
widget_manager->setWgtColor( WTOK_GP, WGT_WHITE);
|
||||
widget_manager->setWgtTexture( WTOK_GP, "gui_lock.rgb", false );
|
||||
widget_manager->showWgtTexture( WTOK_GP );
|
||||
}
|
||||
|
||||
|
||||
widget_manager->addTextButtonWgt(WTOK_QUICKRACE, 60, 7, _("Quick Race"));
|
||||
|
||||
if( race_manager->getNumPlayers() == 1 )
|
||||
{
|
||||
widget_manager->addTextButtonWgt(WTOK_TIMETRIAL, 60, 7, _("Time Trial"));
|
||||
}
|
||||
|
||||
|
||||
widget_manager->addTextButtonWgt( WTOK_FOLLOW_LEADER, 60, 7,
|
||||
_("Follow the Leader"));
|
||||
|
||||
if(unlock_manager->isLocked("followleader"))
|
||||
{
|
||||
const Material *m = material_manager->getMaterial("gui_lock.rgb", false);
|
||||
widget_manager->addImgWgt(WTOK_GP, 60, 7,
|
||||
m->getState()->getTextureHandle() );
|
||||
widget_manager->hideWgtText( WTOK_FOLLOW_LEADER );
|
||||
widget_manager->deactivateWgt( WTOK_FOLLOW_LEADER );
|
||||
|
||||
widget_manager->setWgtColor( WTOK_FOLLOW_LEADER, WGT_WHITE);
|
||||
widget_manager->setWgtTexture( WTOK_FOLLOW_LEADER, "gui_lock.rgb", false );
|
||||
widget_manager->showWgtTexture( WTOK_FOLLOW_LEADER );
|
||||
}
|
||||
else
|
||||
{
|
||||
widget_manager->addTextButtonWgt( WTOK_FOLLOW_LEADER, 60, 7,
|
||||
_("Follow the Leader"));
|
||||
}
|
||||
|
||||
widget_manager->addEmptyWgt( WidgetManager::WGT_NONE, 1, 7);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user