fixed some title widgets which had a button look + fixed mouse bug in menus

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-12-10 01:34:39 +00:00
parent 81b7f96aa7
commit 40edb7c69b
2 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,10 @@ BaseGUI::handle(GameAction action, int value)
widget_manager->decreaseScrollSpeed(true);
break;
case GA_ENTER:
int x, y;
SDL_GetMouseState( &x, &y );
y = SDL_GetVideoSurface()->h - y;
inputPointer( x, y );
select();
break;
case GA_LEAVE:

View File

@ -86,6 +86,7 @@ PlayerControls::PlayerControls(int whichPlayer):
user_config->m_player[m_player_index].getName().c_str() );
widget_manager->addTitleWgt( WTOK_TITLE, 60, 7, heading );
widget_manager->hideWgtRect(WTOK_TITLE);
widget_manager->breakLine();
widget_manager->addTextWgt( WTOK_PLYR_NAME0, 30, 7, _("Player name") );