forked from mirror/openmw-tes3mp
Make SelectAttributeDialog use the new WindowBase
This commit is contained in:
parent
037c1021e3
commit
8f334d1df2
2 changed files with 3 additions and 6 deletions
|
@ -721,13 +721,10 @@ void SelectSpecializationDialog::onCancelClicked(MyGUI::Widget* _sender)
|
||||||
/* SelectAttributeDialog */
|
/* SelectAttributeDialog */
|
||||||
|
|
||||||
SelectAttributeDialog::SelectAttributeDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
SelectAttributeDialog::SelectAttributeDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
||||||
: Layout("openmw_chargen_select_attribute_layout.xml")
|
: WindowBase("openmw_chargen_select_attribute_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;
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ namespace MWGui
|
||||||
ESM::Class::Specialization specializationId;
|
ESM::Class::Specialization specializationId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SelectAttributeDialog : public OEngine::GUI::Layout
|
class SelectAttributeDialog : public WindowBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SelectAttributeDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
SelectAttributeDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
||||||
|
|
Loading…
Reference in a new issue