From 004c727d5491a7e98090e83634f9f13a16e886a0 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 5 Sep 2009 01:10:13 +0000 Subject: [PATCH] Further improved looks of pause dialog git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3997 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/widgets/icon_button_widget.cpp | 1 + src/states_screens/dialogs/race_paused_dialog.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/guiengine/widgets/icon_button_widget.cpp b/src/guiengine/widgets/icon_button_widget.cpp index 5b5f351a0..547161931 100644 --- a/src/guiengine/widgets/icon_button_widget.cpp +++ b/src/guiengine/widgets/icon_button_widget.cpp @@ -64,6 +64,7 @@ void IconButtonWidget::add() btn->setTabStop(false); btn->setScaleImage(true); } + id = m_element->getID(); // ---- label if any stringw& message = m_text; diff --git a/src/states_screens/dialogs/race_paused_dialog.cpp b/src/states_screens/dialogs/race_paused_dialog.cpp index 82ad88729..71874029d 100644 --- a/src/states_screens/dialogs/race_paused_dialog.cpp +++ b/src/states_screens/dialogs/race_paused_dialog.cpp @@ -48,7 +48,7 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, const float percent //I18N: In the 'paused' screen back_btn->m_text = L"Back to Race"; back_btn->x = m_area.getWidth() / 2 - icon_size; - back_btn->y = text_height; + back_btn->y = text_height*2; back_btn->w = icon_size*2; // width larger to leave room for text back_btn->h = icon_size; back_btn->setParent(m_irrlicht_window); @@ -61,9 +61,9 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, const float percent choice_ribbon->m_properties[PROP_ID] = "choiceribbon"; choice_ribbon->x = 0; - choice_ribbon->y = text_height + icon_size + 50; + choice_ribbon->y = text_height*2 + icon_size + 50; choice_ribbon->w = m_area.getWidth(); - choice_ribbon->h = icon_size + text_height*2; + choice_ribbon->h = icon_size + text_height; choice_ribbon->setParent(m_irrlicht_window); if (race_manager->getMinorMode()==RaceManager::MINOR_MODE_QUICK_RACE)