Allow longer player names to be visible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
eccc1a66b4
commit
8e6657378b
@ -10,7 +10,7 @@
|
||||
|
||||
<spacer width="2%" height="1"/>
|
||||
|
||||
<button id="playername" width="10%" align="center"/>
|
||||
<button id="playername" width="15%" align="center"/>
|
||||
|
||||
<spacer proportion="1" height="1"/>
|
||||
<buttonbar id="menu_bottomrow" x="0" y="0" width="30%" height="100%" align="center">
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "states_screens/main_menu_screen.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <IGUIButton.h>
|
||||
|
||||
#include "addons/network_http.hpp"
|
||||
#include "challenges/unlock_manager.hpp"
|
||||
@ -122,6 +123,7 @@ void MainMenuScreen::init()
|
||||
|
||||
ButtonWidget* you = getWidget<ButtonWidget>("playername");
|
||||
you->setText( unlock_manager->getCurrentSlot()->getPlayerName() );
|
||||
((gui::IGUIButton*)you->getIrrlichtElement())->setOverrideFont( GUIEngine::getSmallFont() );
|
||||
|
||||
RibbonWidget* r = getWidget<RibbonWidget>("menu_bottomrow");
|
||||
// FIXME: why do I need to do this manually
|
||||
|
Loading…
Reference in New Issue
Block a user