forked from mirror/openmw-tes3mp
Make DescriptionDialog use the new WindowBase
This commit is contained in:
parent
12dee62307
commit
6fc0e4d6d6
2 changed files with 3 additions and 9 deletions
|
@ -855,14 +855,10 @@ void SelectSkillDialog::onCancelClicked(MyGUI::Widget* _sender)
|
||||||
/* DescriptionDialog */
|
/* DescriptionDialog */
|
||||||
|
|
||||||
DescriptionDialog::DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
DescriptionDialog::DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
||||||
: Layout("openmw_chargen_class_description_layout.xml")
|
: WindowBase("openmw_chargen_class_description_layout.xml", environment)
|
||||||
, environment(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);
|
|
||||||
|
|
||||||
getWidget(textEdit, "TextEdit");
|
getWidget(textEdit, "TextEdit");
|
||||||
|
|
||||||
|
|
|
@ -250,7 +250,7 @@ namespace MWGui
|
||||||
ESM::Skill::SkillEnum skillId;
|
ESM::Skill::SkillEnum skillId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DescriptionDialog : public OEngine::GUI::Layout
|
class DescriptionDialog : public WindowBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
DescriptionDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
||||||
|
@ -270,8 +270,6 @@ namespace MWGui
|
||||||
void onOkClicked(MyGUI::Widget* _sender);
|
void onOkClicked(MyGUI::Widget* _sender);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MWWorld::Environment& environment;
|
|
||||||
|
|
||||||
MyGUI::EditPtr textEdit;
|
MyGUI::EditPtr textEdit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue