summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.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/gui/windowmenu.cpp
parent59ce7917ffb4e6b89593a54fed590d439585ae5f (diff)
downloadmanaverse-352409f22230698bc32661b916f708663a4179b5.tar.gz
manaverse-352409f22230698bc32661b916f708663a4179b5.tar.bz2
manaverse-352409f22230698bc32661b916f708663a4179b5.tar.xz
manaverse-352409f22230698bc32661b916f708663a4179b5.zip
Add "did you know?" dialog and some messages for it.
Fix browserbox images position and size.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 719b67829..b73e5fad0 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -26,6 +26,7 @@
#include "graphics.h"
#include "keyboardconfig.h"
+#include "gui/didyouknowwindow.h"
#include "gui/emotepopup.h"
#include "gui/skilldialog.h"
#include "gui/specialswindow.h"
@@ -94,6 +95,7 @@ WindowMenu::WindowMenu():
KeyboardConfig::KEY_WINDOW_SHORTCUT);
addButton(N_("SP"), _("Spells"), x, h, KeyboardConfig::KEY_WINDOW_SPELLS);
addButton(N_("DR"), _("Drop"), x, h, KeyboardConfig::KEY_WINDOW_DROP);
+ addButton(N_("YK"), _("Did you know"), x, h, KeyboardConfig::KEY_WINDOW_DIDYOUKNOW);
addButton(N_("SET"), _("Setup"), x, h, KeyboardConfig::KEY_WINDOW_SETUP);
if (graphics)
@@ -212,6 +214,10 @@ void WindowMenu::action(const gcn::ActionEvent &event)
{
window = spellShortcutWindow;
}
+ else if (event.getId() == "YK")
+ {
+ window = didYouKnowWindow;
+ }
if (window)
{