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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user