summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-01 12:43:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-01 13:37:39 +0300
commit1c87a896376d62131d9df1fee1bd7cec79e21aa6 (patch)
tree9852dd6458abc9eba4448120793b437ecf38a3e6 /src/game.cpp
parentb1555ac1dae6f0e0aaa88ca7dd1431de87a8e811 (diff)
downloadmv-1c87a896376d62131d9df1fee1bd7cec79e21aa6.tar.gz
mv-1c87a896376d62131d9df1fee1bd7cec79e21aa6.tar.bz2
mv-1c87a896376d62131d9df1fee1bd7cec79e21aa6.tar.xz
mv-1c87a896376d62131d9df1fee1bd7cec79e21aa6.zip
add gui for in chat emotes.
For add in chat emote press F1 inside opened chat, then select and click emote.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 08544e8eb..8c7fbf868 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -46,6 +46,7 @@
#include "gui/botcheckerwindow.h"
#include "gui/debugwindow.h"
#include "gui/didyouknowwindow.h"
+#include "gui/emotewindow.h"
#include "gui/equipmentwindow.h"
#include "gui/gui.h"
#include "gui/helpwindow.h"
@@ -116,6 +117,7 @@ QuitDialog *quitDialog = nullptr;
Window *disconnectedDialog = nullptr;
ChatWindow *chatWindow = nullptr;
+EmoteWindow *emoteWindow = nullptr;
StatusWindow *statusWindow = nullptr;
MiniStatusWindow *miniStatusWindow = nullptr;
InventoryWindow *inventoryWindow = nullptr;
@@ -198,6 +200,7 @@ static void createGuiWindows()
emoteShortcut->load();
// Create dialogs
+ emoteWindow = new EmoteWindow;
chatWindow = new ChatWindow;
chatWindow->updateVisibility();
tradeWindow = new TradeWindow;
@@ -339,6 +342,7 @@ static void destroyGuiWindows()
del_0(battleChatTab)
del_0(gmChatTab);
logger->log("start deleting");
+ del_0(emoteWindow);
del_0(chatWindow)
logger->log("end deleting");
del_0(statusWindow)