diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-29 18:47:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-29 18:47:15 +0300 |
commit | 8f664b75f4757ff0c0d1d20ae2d2ba892c1ad7c0 (patch) | |
tree | 3a36f210c6c814764cac4a273530e5cbc4e3c5be /src | |
parent | a57d736348be038bcc1371b05dbc89459f87d045 (diff) | |
download | mv-8f664b75f4757ff0c0d1d20ae2d2ba892c1ad7c0.tar.gz mv-8f664b75f4757ff0c0d1d20ae2d2ba892c1ad7c0.tar.bz2 mv-8f664b75f4757ff0c0d1d20ae2d2ba892c1ad7c0.tar.xz mv-8f664b75f4757ff0c0d1d20ae2d2ba892c1ad7c0.zip |
Add quests window to on screen buttons.
Dont create quests window if using old servers.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 3 | ||||
-rw-r--r-- | src/gui/windowmenu.cpp | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index c7da8bea4..3081cf089 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -252,7 +252,8 @@ static void createGuiWindows() whoIsOnline = new WhoIsOnline; killStats = new KillStats; socialWindow = new SocialWindow; - questsWindow = new QuestsWindow; + if (serverVersion >= 6) + questsWindow = new QuestsWindow; localChatTab = new ChatTab(_("General")); localChatTab->setAllowHighlight(false); diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 37490eea7..5f48ff633 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -59,6 +59,7 @@ extern Window *killStats; extern Window *spellShortcutWindow; extern Window *botCheckerWindow; extern Window *socialWindow; +extern Window *questsWindow; WindowMenu::WindowMenu() : mHaveMouse(false), @@ -68,10 +69,12 @@ WindowMenu::WindowMenu() : setFocusable(false); - addButton(N_("BC"), _("Bot checker"), x, h, - Input::KEY_WINDOW_BOT_CHECKER, false); addButton(N_("ONL"), _("Who is online"), x, h, Input::KEY_NO_VALUE); + addButton(N_("QE"), _("Quests"), x, h, + Input::KEY_WINDOW_QUESTS); + addButton(N_("BC"), _("Bot checker"), x, h, + Input::KEY_WINDOW_BOT_CHECKER, false); addButton(N_("KS"), _("Kill stats"), x, h, Input::KEY_WINDOW_KILLS); addButton(":-)", _("Smilies"), x, h, @@ -207,6 +210,10 @@ void WindowMenu::action(const gcn::ActionEvent &event) { window = didYouKnowWindow; } + else if (event.getId() == "QE") + { + window = questsWindow; + } if (window) { |