mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 18:45:31 +00:00
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(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
||||
: Layout("openmw_chargen_select_attribute_layout.xml")
|
||||
: WindowBase("openmw_chargen_select_attribute_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;
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ namespace MWGui
|
|||
ESM::Class::Specialization specializationId;
|
||||
};
|
||||
|
||||
class SelectAttributeDialog : public OEngine::GUI::Layout
|
||||
class SelectAttributeDialog : public WindowBase
|
||||
{
|
||||
public:
|
||||
SelectAttributeDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
||||
|
|
Loading…
Reference in a new issue