diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-21 23:53:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-22 12:23:26 +0300 |
commit | 5dd673aa6abe2a070de45388a885d03fcc037d70 (patch) | |
tree | b5bf80507501e7b77c4dbdbfc39989ebd6209a20 /src/game.cpp | |
parent | 66bc17a4099842f9a54c13c183842f561d63963f (diff) | |
download | plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.gz plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.bz2 plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.xz plus-5dd673aa6abe2a070de45388a885d03fcc037d70.zip |
allow open updater window from inside game.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 11 |
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(); +} |