summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-28 21:29:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-28 21:45:47 +0300
commit0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5 (patch)
tree6ed783279483538799567c38c2818c5dd136e302 /src/game.cpp
parentbb87f2911b63eaf80e49d689bf52ecf2042ae098 (diff)
downloadmanaplus-0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5.tar.gz
manaplus-0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5.tar.bz2
manaplus-0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5.tar.xz
manaplus-0b7ef18ac3c7fb4e3717f6311d4e21a31ff440d5.zip
Move dialogs related function into separate file.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp23
1 files changed, 2 insertions, 21 deletions
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();
-}