mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Make GenerateClassResultDialog use the new WindowBase
This commit is contained in:
parent
0d97200e18
commit
ed05c5752b
@ -15,15 +15,10 @@ using namespace MWGui;
|
|||||||
/* GenerateClassResultDialog */
|
/* GenerateClassResultDialog */
|
||||||
|
|
||||||
GenerateClassResultDialog::GenerateClassResultDialog(MWWorld::Environment& environment)
|
GenerateClassResultDialog::GenerateClassResultDialog(MWWorld::Environment& environment)
|
||||||
: Layout("openmw_chargen_generate_class_result_layout.xml")
|
: WindowBase("openmw_chargen_generate_class_result_layout.xml", environment)
|
||||||
, environment(environment)
|
|
||||||
{
|
{
|
||||||
// Centre dialog
|
// Centre dialog
|
||||||
MyGUI::IntSize gameWindowSize = environment.mWindowManager->getGui()->getViewSize();
|
center();
|
||||||
MyGUI::IntCoord coord = mMainWidget->getCoord();
|
|
||||||
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;
|
||||||
setText("ReflectT", wm->getGameSettingString("sMessageQuestionAnswer1", ""));
|
setText("ReflectT", wm->getGameSettingString("sMessageQuestionAnswer1", ""));
|
||||||
|
@ -75,7 +75,7 @@ namespace MWGui
|
|||||||
ClassChoiceDialog(MWWorld::Environment& environment);
|
ClassChoiceDialog(MWWorld::Environment& environment);
|
||||||
};
|
};
|
||||||
|
|
||||||
class GenerateClassResultDialog : public OEngine::GUI::Layout
|
class GenerateClassResultDialog : public WindowBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GenerateClassResultDialog(MWWorld::Environment& environment);
|
GenerateClassResultDialog(MWWorld::Environment& environment);
|
||||||
@ -103,8 +103,6 @@ namespace MWGui
|
|||||||
void onBackClicked(MyGUI::Widget* _sender);
|
void onBackClicked(MyGUI::Widget* _sender);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MWWorld::Environment& environment;
|
|
||||||
|
|
||||||
MyGUI::StaticImagePtr classImage;
|
MyGUI::StaticImagePtr classImage;
|
||||||
MyGUI::StaticTextPtr className;
|
MyGUI::StaticTextPtr className;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user