Make DescriptionDialog use the new WindowBase

actorid
Jan-Peter Nilsson 14 years ago
parent 12dee62307
commit 6fc0e4d6d6

@ -855,14 +855,10 @@ void SelectSkillDialog::onCancelClicked(MyGUI::Widget* _sender)
/* DescriptionDialog */
DescriptionDialog::DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
: Layout("openmw_chargen_class_description_layout.xml")
, environment(environment)
: WindowBase("openmw_chargen_class_description_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();
getWidget(textEdit, "TextEdit");

@ -250,7 +250,7 @@ namespace MWGui
ESM::Skill::SkillEnum skillId;
};
class DescriptionDialog : public OEngine::GUI::Layout
class DescriptionDialog : public WindowBase
{
public:
DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
@ -270,8 +270,6 @@ namespace MWGui
void onOkClicked(MyGUI::Widget* _sender);
private:
MWWorld::Environment& environment;
MyGUI::EditPtr textEdit;
};

Loading…
Cancel
Save