From 2a7bc0b7d4dbec6893d25738aed22e2997494479 Mon Sep 17 00:00:00 2001 From: "dweems000@gmail.com" Date: Sun, 27 Dec 2009 12:00:34 -0600 Subject: Add right click whisper --- src/gui/popupmenu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/popupmenu.cpp') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 9f3ecc7d..3450f4a5 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -87,6 +87,10 @@ void PopupMenu::showPopup(int x, int y, Being *being) mBrowserBox->addRow(strprintf("@@attack|%s@@", strprintf(_("Attack %s"), name.c_str()).c_str())); + // TRANSLATORS: Whispering a player. + mBrowserBox->addRow(strprintf("@@whisper|%s@@", + strprintf(_("Whisper %s"), + name.c_str()).c_str())); mBrowserBox->addRow("##3---"); @@ -220,6 +224,10 @@ void PopupMenu::handleLink(const std::string &link) { player_node->attack(being, true); } + else if (link == "whisper" && being) + { + chatWindow->addInputText("/w \"" + being->getName() + "\" "); + } else if (link == "unignore" && being && being->getType() == Being::PLAYER) -- cgit v1.2.3-70-g09d2