fixed text in modal dialog moving when you clicked it

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3622 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-06-20 00:42:13 +00:00
parent bfa5b18f24
commit 7f925012a6

View File

@ -56,7 +56,10 @@ PressAKeyDialog::PressAKeyDialog(const float w, const float h) :
ModalDialog(w, h)
{
core::rect< s32 > area2(0, 0, m_area.getWidth(), m_area.getHeight());
GUIEngine::getGUIEnv()->addButton( area2, m_irrlicht_window, -1, stringw(_("Press a key")).c_str() );
IGUIStaticText* label = GUIEngine::getGUIEnv()->addStaticText( stringw(_("Press a key")).c_str(),
area2, false /* border */, true /* word wrap */,
m_irrlicht_window);
label->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
}
// ------------------------------------------------------------------------------------------------------