From d3e0019d61cbd4f2c1e8b8d0f91767f043d4d693 Mon Sep 17 00:00:00 2001 From: cosmosninja Date: Wed, 12 Dec 2007 14:26:55 +0000 Subject: [PATCH] Grand Prix selection screen's description is centered again, plus minor cleanups. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1346 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/gui/grand_prix_select.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/gui/grand_prix_select.cpp b/src/gui/grand_prix_select.cpp index 2e49d70f9..f6ac93bf5 100644 --- a/src/gui/grand_prix_select.cpp +++ b/src/gui/grand_prix_select.cpp @@ -69,14 +69,6 @@ GrandPrixSelect::GrandPrixSelect() m_all_cups.push_back(cup); widget_manager->add_wgt(WTOK_FIRSTPRIX + nId, 40, 7); widget_manager->set_wgt_text(WTOK_FIRSTPRIX + nId, cup.getName()); -/* if(nId==0) - { - widgetSet -> start(m_menu_id, cup.getName(), GUI_SML, nId, 0); - } - else - { - widgetSet -> state(m_menu_id, cup.getName(), GUI_SML, nId, 0); - }*/ nId++; } // if } // for i @@ -101,15 +93,12 @@ GrandPrixSelect::GrandPrixSelect() widget_manager->activate_wgt(WTOK_QUIT); widget_manager->layout(WGT_AREA_ALL); - //m_rect = widgetSet->rect(10, 10, user_config->m_width-20, 34, GUI_ALL, 10);*/ } // GrandPrixSelect //----------------------------------------------------------------------------- GrandPrixSelect::~GrandPrixSelect() { widget_manager->reset(); -// widgetSet -> delete_widget(m_menu_id) ; -// glDeleteLists(m_rect, 1); } // GrandPrixSelect //----------------------------------------------------------------------------- @@ -121,6 +110,7 @@ void GrandPrixSelect::update(float dt) const CupData &cup = m_all_cups[CLICKED_TOKEN - WTOK_FIRSTPRIX]; widget_manager->set_wgt_text(WTOK_DESCRIPTION, cup.getDescription()); + widget_manager->set_wgt_x_scroll_pos( WTOK_DESCRIPTION, WGT_SCROLL_CENTER ); return; }