|
|
|
@ -380,19 +380,14 @@ ClassChoiceDialog::ClassChoiceDialog(MWWorld::Environment& environment)
|
|
|
|
|
/* CreateClassDialog */
|
|
|
|
|
|
|
|
|
|
CreateClassDialog::CreateClassDialog(MWWorld::Environment& environment)
|
|
|
|
|
: Layout("openmw_chargen_create_class_layout.xml")
|
|
|
|
|
, environment(environment)
|
|
|
|
|
: WindowBase("openmw_chargen_create_class_layout.xml", environment)
|
|
|
|
|
, specDialog(nullptr)
|
|
|
|
|
, attribDialog(nullptr)
|
|
|
|
|
, skillDialog(nullptr)
|
|
|
|
|
, descDialog(nullptr)
|
|
|
|
|
{
|
|
|
|
|
// Centre dialog
|
|
|
|
|
MyGUI::IntSize gameWindowSize = environment.mWindowManager->getGui()->getViewSize();
|
|
|
|
|
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;
|
|
|
|
|
setText("SpecializationT", wm->getGameSettingString("sChooseClassMenu1", "Specialization"));
|
|
|
|
|