Horrible work around small glitch I'm too lazy to fix right now...

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-12-08 00:44:30 +00:00
parent cd5e26c223
commit de20a89c17
2 changed files with 7 additions and 1 deletions

View File

@@ -513,6 +513,8 @@ namespace GUIEngine
*/
const PtrVector<Widget>& getChildren() const { return m_children; }
PtrVector<Widget>& getChildren() { return m_children; }
/**
* \brief removes and deletes the child with the given PROP_ID
* \param id PROP_ID property of the child to remove

View File

@@ -123,7 +123,11 @@ void MainMenuScreen::init()
ButtonWidget* you = getWidget<ButtonWidget>("playername");
you->setText( unlock_manager->getCurrentSlot()->getPlayerName() );
RibbonWidget* r = getWidget<RibbonWidget>("menu_toprow");
RibbonWidget* r = getWidget<RibbonWidget>("menu_bottomrow");
// FIXME: why do I need to do this manually
((IconButtonWidget*)r->getChildren().get(0))->unfocused(PLAYER_ID_GAME_MASTER, NULL);
r = getWidget<RibbonWidget>("menu_toprow");
r->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
} // init