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
This commit is contained in:
auria 2009-09-05 01:10:13 +00:00
parent b5fc0fdf1a
commit 004c727d54
2 changed files with 4 additions and 3 deletions

View File

@ -64,6 +64,7 @@ void IconButtonWidget::add()
btn->setTabStop(false);
btn->setScaleImage(true);
}
id = m_element->getID();
// ---- label if any
stringw& message = m_text;

View File

@ -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)