summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authordweems000@gmail.com <dweems000@gmail.com>2009-12-27 12:00:34 -0600
committerJared Adams <jaxad0127@gmail.com>2009-12-27 12:30:27 -0700
commit2a7bc0b7d4dbec6893d25738aed22e2997494479 (patch)
treefb75fcedf4a121f041a0fd4b6037bf97afb1ff80 /src/gui/popupmenu.cpp
parent249d9fad37dd10650a1aee83c45c820017de218a (diff)
downloadmana-client-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.gz
mana-client-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.bz2
mana-client-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.xz
mana-client-2a7bc0b7d4dbec6893d25738aed22e2997494479.zip
Add right click whisper
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp8
1 files changed, 8 insertions, 0 deletions
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)