|
|
|
@ -28,7 +28,6 @@ namespace MWGui
|
|
|
|
|
, mBackground(nullptr)
|
|
|
|
|
, mVideoBackground(nullptr)
|
|
|
|
|
, mVideo(nullptr)
|
|
|
|
|
, mSaveGameDialog(nullptr)
|
|
|
|
|
{
|
|
|
|
|
getWidget(mVersionText, "VersionText");
|
|
|
|
|
mVersionText->setCaption(versionDescription);
|
|
|
|
@ -38,11 +37,6 @@ namespace MWGui
|
|
|
|
|
updateMenu();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainMenu::~MainMenu()
|
|
|
|
|
{
|
|
|
|
|
delete mSaveGameDialog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainMenu::onResChange(int w, int h)
|
|
|
|
|
{
|
|
|
|
|
mWidth = w;
|
|
|
|
@ -133,7 +127,7 @@ namespace MWGui
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (!mSaveGameDialog)
|
|
|
|
|
mSaveGameDialog = new SaveGameDialog();
|
|
|
|
|
mSaveGameDialog = std::make_unique<SaveGameDialog>();
|
|
|
|
|
if (name == "loadgame")
|
|
|
|
|
mSaveGameDialog->setLoadOrSave(true);
|
|
|
|
|
else if (name == "savegame")
|
|
|
|
|