Make SelectSkillDialog use the new WindowBase

This commit is contained in:
Jan-Peter Nilsson 2010-11-06 11:41:41 +01:00
parent 8f334d1df2
commit 12dee62307
2 changed files with 3 additions and 6 deletions

View file

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

View file

@ -215,7 +215,7 @@ namespace MWGui
ESM::Attribute::AttributeID attributeId; ESM::Attribute::AttributeID attributeId;
}; };
class SelectSkillDialog : public OEngine::GUI::Layout class SelectSkillDialog : public WindowBase
{ {
public: public:
SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize); SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);