forked from mirror/openmw-tes3mp
Make SelectSpecializationDialog use the new WindowBase
This commit is contained in:
parent
4e8f55b630
commit
037c1021e3
2 changed files with 3 additions and 6 deletions
|
@ -670,13 +670,10 @@ void CreateClassDialog::onBackClicked(MyGUI::Widget* _sender)
|
|||
/* SelectSpecializationDialog */
|
||||
|
||||
SelectSpecializationDialog::SelectSpecializationDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
||||
: Layout("openmw_chargen_select_specialization_layout.xml")
|
||||
: WindowBase("openmw_chargen_select_specialization_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;
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ namespace MWGui
|
|||
std::string currentClassId;
|
||||
};
|
||||
|
||||
class SelectSpecializationDialog : public OEngine::GUI::Layout
|
||||
class SelectSpecializationDialog : public WindowBase
|
||||
{
|
||||
public:
|
||||
SelectSpecializationDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
||||
|
|
Loading…
Reference in a new issue