From 0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 28 May 2014 21:29:43 +0300 Subject: Move dialogs related function into separate file. --- src/game.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 67b887022..e12ff98a7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -49,6 +49,7 @@ #include "input/keyboardconfig.h" #include "gui/chatconsts.h" +#include "gui/dialogsmanager.h" #include "gui/gui.h" #include "gui/viewport.h" #include "gui/windowmenu.h" @@ -156,7 +157,6 @@ BotCheckerWindow *botCheckerWindow = nullptr; SocialWindow *socialWindow = nullptr; QuestsWindow *questsWindow = nullptr; WindowMenu *windowMenu = nullptr; -UpdaterWindow *updaterWindow = nullptr; ActorManager *actorManager = nullptr; CommandHandler *commandHandler = nullptr; @@ -690,7 +690,7 @@ void Game::slowLogic() map->saveExtraLayer(); } } - closeDialogs(); + DialogsManager::closeDialogs(); client->setFramerate(config.getIntValue("fpslimit")); mNextAdjustTime = cur_time + adjustDelay; if (client->getState() != STATE_ERROR) @@ -1187,16 +1187,6 @@ void Game::clearKeysArray() } } -void Game::closeDialogs() -{ - Client::closeDialogs(); - if (deathNotice) - { - deathNotice->scheduleDelete(); - deathNotice = nullptr; - } -} - void Game::videoResized(const int width, const int height) { if (viewport) @@ -1204,12 +1194,3 @@ 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(); -} -- cgit v1.2.3-70-g09d2