summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-07 23:12:08 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-09 18:54:45 +0300
commit352409f22230698bc32661b916f708663a4179b5 (patch)
treeae61ad48814a076ae5f32137c297fc1b3198ab7c /src/game.cpp
parent59ce7917ffb4e6b89593a54fed590d439585ae5f (diff)
downloadplus-352409f22230698bc32661b916f708663a4179b5.tar.gz
plus-352409f22230698bc32661b916f708663a4179b5.tar.bz2
plus-352409f22230698bc32661b916f708663a4179b5.tar.xz
plus-352409f22230698bc32661b916f708663a4179b5.zip
Add "did you know?" dialog and some messages for it.
Fix browserbox images position and size.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 850d335e4..bb477b2e0 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -53,6 +53,7 @@
#include "gui/chatwindow.h"
#include "gui/confirmdialog.h"
#include "gui/debugwindow.h"
+#include "gui/didyouknowwindow.h"
#include "gui/equipmentwindow.h"
#include "gui/gui.h"
#include "gui/helpwindow.h"
@@ -141,6 +142,7 @@ SpecialsWindow *specialsWindow = NULL;
ShortcutWindow *dropShortcutWindow = NULL;
ShortcutWindow *spellShortcutWindow = NULL;
WhoIsOnline *whoIsOnline = NULL;
+DidYouKnowWindow *didYouKnowWindow = NULL;
KillStats *killStats = NULL;
BotCheckerWindow *botCheckerWindow = NULL;
SocialWindow *socialWindow = NULL;
@@ -212,6 +214,12 @@ static void createGuiWindows()
itemShortcutWindow->addTab(toString(f + 1),
new ItemShortcutContainer(f));
}
+ didYouKnowWindow = new DidYouKnowWindow;
+ if (config.getBoolValue("showDidYouKnow"))
+ {
+ didYouKnowWindow->setVisible(true);
+ didYouKnowWindow->loadData();
+ }
emoteShortcutWindow = new ShortcutWindow("EmoteShortcut",
new EmoteShortcutContainer);
@@ -314,6 +322,7 @@ static void destroyGuiWindows()
del_0(botCheckerWindow);
del_0(whoIsOnline);
del_0(killStats);
+ del_0(didYouKnowWindow);
Mana::Event::trigger(CHANNEL_GAME, Mana::Event(EVENT_GUIWINDOWSUNLOADED));
}