Make SelectSpecializationDialog use the new WindowBase

This commit is contained in:
Jan-Peter Nilsson 2010-11-06 11:39:38 +01:00
parent 4e8f55b630
commit 037c1021e3
2 changed files with 3 additions and 6 deletions

View file

@ -670,13 +670,10 @@ void CreateClassDialog::onBackClicked(MyGUI::Widget* _sender)
/* SelectSpecializationDialog */
SelectSpecializationDialog::SelectSpecializationDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
: Layout("openmw_chargen_select_specialization_layout.xml")
: WindowBase("openmw_chargen_select_specialization_layout.xml", environment)
{
// Centre dialog
MyGUI::IntCoord coord = mMainWidget->getCoord();
coord.left = (gameWindowSize.width - coord.width)/2;
coord.top = (gameWindowSize.height - coord.height)/2;
mMainWidget->setCoord(coord);
center();
WindowManager *wm = environment.mWindowManager;

View file

@ -153,7 +153,7 @@ namespace MWGui
std::string currentClassId;
};
class SelectSpecializationDialog : public OEngine::GUI::Layout
class SelectSpecializationDialog : public WindowBase
{
public:
SelectSpecializationDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);