Added lock texture to the ??? buttons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "game_mode.hpp"
|
||||
#include "widget_manager.hpp"
|
||||
#include "race_manager.hpp"
|
||||
#include "material_manager.hpp"
|
||||
#include "menu_manager.hpp"
|
||||
#include "translation.hpp"
|
||||
#include "user_config.hpp"
|
||||
@@ -55,6 +56,11 @@ GameMode::GameMode()
|
||||
{
|
||||
widget_manager->setWgtText( WTOK_GP, "???");
|
||||
widget_manager->deactivateWgt(WTOK_GP);
|
||||
|
||||
const Material *m = material_manager->getMaterial("gui_lock.rgb", false);
|
||||
widget_manager->setWgtColor( WTOK_GP, WGT_WHITE);
|
||||
widget_manager->setWgtTexture( WTOK_GP, m->getState()->getTextureHandle() );
|
||||
widget_manager->showWgtTexture( WTOK_GP );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -74,6 +80,11 @@ GameMode::GameMode()
|
||||
{
|
||||
widget_manager->setWgtText( WTOK_FOLLOW_LEADER, "???");
|
||||
widget_manager->deactivateWgt(WTOK_FOLLOW_LEADER);
|
||||
|
||||
const Material *m = material_manager->getMaterial("gui_lock.rgb", false);
|
||||
widget_manager->setWgtColor( WTOK_FOLLOW_LEADER, WGT_WHITE);
|
||||
widget_manager->setWgtTexture( WTOK_FOLLOW_LEADER, m->getState()->getTextureHandle() );
|
||||
widget_manager->showWgtTexture( WTOK_FOLLOW_LEADER );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -60,6 +60,11 @@ TrackSel::TrackSel()
|
||||
{
|
||||
widget_manager->setWgtText( WTOK_TRACK0 + i, "???");
|
||||
widget_manager->deactivateWgt(WTOK_TRACK0 + i);
|
||||
|
||||
const Material *m = material_manager->getMaterial("gui_lock.rgb", false);
|
||||
widget_manager->setWgtColor( WTOK_TRACK0 + i, WGT_WHITE);
|
||||
widget_manager->setWgtTexture( WTOK_TRACK0 + i, m->getState()->getTextureHandle() );
|
||||
widget_manager->showWgtTexture( WTOK_TRACK0 + i );
|
||||
}
|
||||
if( i%2 != 0 ) widget_manager->breakLine();
|
||||
else if (i + 1 == track_manager->getTrackCount() )
|
||||
|
||||
Reference in New Issue
Block a user