From f8fe9124d93fdf5c21af733eca36695f95ea7059 Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Sun, 9 Dec 2007 22:43:07 +0000 Subject: [PATCH] Minor improvements to the character selection screen. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1329 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/char_sel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/char_sel.cpp b/src/gui/char_sel.cpp index 99ee3c131..d1b5b3a5f 100644 --- a/src/gui/char_sel.cpp +++ b/src/gui/char_sel.cpp @@ -98,7 +98,7 @@ CharSel::CharSel(int whichPlayer) widget_manager->break_line(); //FIXME: the widget should check if the dimensions > 100 - widget_manager->add_wgt( WTOK_NAME, 20, 7); + widget_manager->add_wgt( WTOK_NAME, 30, 7); widget_manager->show_wgt_rect( WTOK_NAME ); widget_manager->show_wgt_text( WTOK_NAME ); @@ -128,8 +128,9 @@ void CharSel::switchCharacter(int n) const KartProperties* kp= kart_properties_manager->getKartById(n); if (m_current_kart != n && kp != NULL) { - //widgetSet -> set_label(m_kart_name_label, kp->getName().c_str()); widget_manager->set_wgt_text( WTOK_NAME, kp->getName().c_str()); + //FIXME: maybe I should rename WGT_SCROLL_* to WGT_POS_* + widget_manager->set_wgt_x_scroll_pos( WTOK_NAME, WGT_SCROLL_CENTER ); m_current_kart = n; ssgDeRefDelete(m_kart);