From fdb020016ab2d829129c87f63de3bff3d2b9d621 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 21 Aug 2011 16:54:50 +0000 Subject: [PATCH] Better defaults for focusd button in race end screen git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9585 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_result_gui.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index 6da348a8f..8c3812c03 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -88,6 +88,7 @@ void RaceResultGUI::enableAllButtons() top->setText(n==1 ? _("See unlocked feature") : _("See unlocked features")); top->setVisible(true); + top->setFocusForPlayer(PLAYER_ID_GAME_MASTER); } else if (race_manager->getMajorMode() == RaceManager::MAJOR_MODE_GRAND_PRIX) { @@ -100,6 +101,8 @@ void RaceResultGUI::enableAllButtons() bottom->setText( _("Abort Grand Prix") ); bottom->setVisible(true); + + middle->setFocusForPlayer(PLAYER_ID_GAME_MASTER); } else { @@ -113,14 +116,9 @@ void RaceResultGUI::enableAllButtons() bottom->setText( _("Back to the menu") ); bottom->setVisible(true); + + bottom->setFocusForPlayer(PLAYER_ID_GAME_MASTER); } - - // Make sure that when 'fire' is pressed accidentally (e.g. pressing fire - // very often to skip all results) that a good default is chosen (to - // avoid aborting a GP by accident). - for(int i=0; isetFocusForPlayer(i); - } // enableAllButtons //-----------------------------------------------------------------------------