forked from mirror/openmw-tes3mp
Make SelectSkillDialog use the new WindowBase
This commit is contained in:
parent
8f334d1df2
commit
12dee62307
2 changed files with 3 additions and 6 deletions
|
@ -766,13 +766,10 @@ void SelectAttributeDialog::onCancelClicked(MyGUI::Widget* _sender)
|
||||||
/* SelectSkillDialog */
|
/* SelectSkillDialog */
|
||||||
|
|
||||||
SelectSkillDialog::SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
SelectSkillDialog::SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
|
||||||
: Layout("openmw_chargen_select_skill_layout.xml")
|
: WindowBase("openmw_chargen_select_skill_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;
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ namespace MWGui
|
||||||
ESM::Attribute::AttributeID attributeId;
|
ESM::Attribute::AttributeID attributeId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SelectSkillDialog : public OEngine::GUI::Layout
|
class SelectSkillDialog : public WindowBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
SelectSkillDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
|
||||||
|
|
Loading…
Reference in a new issue