From a338b7098e1ddc9fb21350368d871154eb386df9 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 26 May 2008 04:31:53 +0000 Subject: [PATCH] Added explanation message to locked game modes and tracks. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2065 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/game_mode.cpp | 2 ++ src/gui/track_sel.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gui/game_mode.cpp b/src/gui/game_mode.cpp index ca192e252..90688ec0e 100644 --- a/src/gui/game_mode.cpp +++ b/src/gui/game_mode.cpp @@ -76,6 +76,8 @@ GameMode::GameMode() widget_manager->setWgtColor( WTOK_FOLLOW_LEADER, WGT_GRAY); widget_manager->setWgtTexture( WTOK_FOLLOW_LEADER, "gui_lock.rgb", false ); widget_manager->showWgtTexture( WTOK_FOLLOW_LEADER ); + widget_manager->setWgtText(WTOK_FOLLOW_LEADER, + _("Fulfil challenge to unlock")); } widget_manager->addEmptyWgt( WidgetManager::WGT_NONE, 1, 7); diff --git a/src/gui/track_sel.cpp b/src/gui/track_sel.cpp index b4581967b..066fffd49 100644 --- a/src/gui/track_sel.cpp +++ b/src/gui/track_sel.cpp @@ -68,6 +68,7 @@ TrackSel::TrackSel() widget_manager->setWgtColor( WTOK_TRACK0 + i, WGT_GRAY ); widget_manager->setWgtTexture( WTOK_TRACK0 + i, "gui_lock.rgb", false ); widget_manager->showWgtTexture( WTOK_TRACK0 + i ); + widget_manager->setWgtText(WTOK_TRACK0+i, _("Fulfil challenge to unlock")); } if( i%2 != 0 ) widget_manager->breakLine(); else if (i + 1 == track_manager->getTrackCount() )