summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-21 23:53:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-22 12:23:26 +0300
commit5dd673aa6abe2a070de45388a885d03fcc037d70 (patch)
treeb5bf80507501e7b77c4dbdbfc39989ebd6209a20 /src/game.cpp
parent66bc17a4099842f9a54c13c183842f561d63963f (diff)
downloadmanaplus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.gz
manaplus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.bz2
manaplus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.xz
manaplus-5dd673aa6abe2a070de45388a885d03fcc037d70.zip
allow open updater window from inside game.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d4a75803e..c124fcfcf 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -77,6 +77,7 @@
#include "gui/windows/statuswindow.h"
#include "gui/windows/tradewindow.h"
#include "gui/windows/questswindow.h"
+#include "gui/windows/updaterwindow.h"
#include "gui/windows/whoisonline.h"
#include "gui/widgets/tabs/battletab.h"
@@ -154,6 +155,7 @@ BotCheckerWindow *botCheckerWindow = nullptr;
SocialWindow *socialWindow = nullptr;
QuestsWindow *questsWindow = nullptr;
WindowMenu *windowMenu = nullptr;
+UpdaterWindow *updaterWindow = nullptr;
ActorManager *actorManager = nullptr;
CommandHandler *commandHandler = nullptr;
@@ -1201,3 +1203,12 @@ void Game::videoResized(const int width, const int height)
if (windowMenu)
windowMenu->setPosition(width - windowMenu->getWidth(), 0);
}
+
+void Game::createUpdaterWindow()
+{
+ updaterWindow = new UpdaterWindow(client->getUpdateHost(),
+ client->getOldUpdates(),
+ false,
+ 0);
+ updaterWindow->postInit();
+}