diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-12 18:48:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-12 18:48:32 +0300 |
commit | b07ac409f1940d3767c8e4ade0990d11d2d38b96 (patch) | |
tree | 7cafd1aad2a39737726a4f83edfb20f6c89e6c23 | |
parent | 8982d886b218bdda87824301771de2cca6513870 (diff) | |
download | manaverse-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.gz manaverse-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.bz2 manaverse-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.xz manaverse-b07ac409f1940d3767c8e4ade0990d11d2d38b96.zip |
Remove "npc whisper" popup menu handler.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 82c1807c6..625d6822e 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -257,7 +257,8 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) { // TRANSLATORS: popup menu item // TRANSLATORS: whisper to npc - mBrowserBox->addRow("npc whisper", _("Whisper")); + mBrowserBox->addRow("/whispertext NPC:'NAME'", + _("Whisper")); } // TRANSLATORS: popup menu item // TRANSLATORS: buy from npc @@ -981,22 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "npc whisper" && !mNick.empty()) - { - if (chatWindow) - { - if (config.getBoolValue("whispertab")) - { - chatWindow->localChatInput("/q NPC:" + mNick); - } - else - { - chatWindow->addInputText(std::string("/w \"NPC:").append( - mNick).append("\" ")); - } - } - } - else if (link == "move" && !mNick.empty()) + if (link == "move" && !mNick.empty()) { if (localPlayer) { |