diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-09 18:55:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-09 18:55:54 +0300 |
commit | 01c43410488f80156f0d47bb3762a1fe2af38b3f (patch) | |
tree | a79145b7e9df1cba08e205038e6ba4d43b13fe07 /src/game.cpp | |
parent | 4d875e356660d5196df8cd1ccc1e84ddfec429fd (diff) | |
parent | 352409f22230698bc32661b916f708663a4179b5 (diff) | |
download | plus-01c43410488f80156f0d47bb3762a1fe2af38b3f.tar.gz plus-01c43410488f80156f0d47bb3762a1fe2af38b3f.tar.bz2 plus-01c43410488f80156f0d47bb3762a1fe2af38b3f.tar.xz plus-01c43410488f80156f0d47bb3762a1fe2af38b3f.zip |
Merge branch 'didyouknow'
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
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)); } |