mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Make ReviewDialog use the new WindowBase
This commit is contained in:
parent
5db021e99b
commit
2e7e79f596
@ -14,16 +14,11 @@ using namespace Widgets;
|
||||
const int ReviewDialog::lineHeight = 18;
|
||||
|
||||
ReviewDialog::ReviewDialog(MWWorld::Environment& environment)
|
||||
: Layout("openmw_chargen_review_layout.xml")
|
||||
, environment(environment)
|
||||
: WindowBase("openmw_chargen_review_layout.xml", environment)
|
||||
, lastPos(0)
|
||||
{
|
||||
// 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;
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
#ifndef MWGUI_REVIEW_H
|
||||
#define MWGUI_REVIEW_H
|
||||
|
||||
#include <components/esm_store/store.hpp>
|
||||
#include <openengine/gui/layout.hpp>
|
||||
#include "window_base.hpp"
|
||||
#include "../mwmechanics/stat.hpp"
|
||||
#include "widgets.hpp"
|
||||
|
||||
@ -20,7 +19,7 @@ namespace MWGui
|
||||
{
|
||||
using namespace MyGUI;
|
||||
|
||||
class ReviewDialog : public OEngine::GUI::Layout
|
||||
class ReviewDialog : public WindowBase
|
||||
{
|
||||
public:
|
||||
typedef std::vector<int> SkillList;
|
||||
@ -106,7 +105,6 @@ namespace MWGui
|
||||
|
||||
static const int lineHeight;
|
||||
|
||||
MWWorld::Environment& environment;
|
||||
MyGUI::StaticTextPtr nameWidget, raceWidget, classWidget, birthSignWidget;
|
||||
MyGUI::WidgetPtr skillAreaWidget, skillClientWidget;
|
||||
MyGUI::VScrollPtr skillScrollerWidget;
|
||||
|
Loading…
Reference in New Issue
Block a user