diff options
author | dweems000@gmail.com <dweems000@gmail.com> | 2009-12-27 12:00:34 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-27 12:30:27 -0700 |
commit | 2a7bc0b7d4dbec6893d25738aed22e2997494479 (patch) | |
tree | fb75fcedf4a121f041a0fd4b6037bf97afb1ff80 /src | |
parent | 249d9fad37dd10650a1aee83c45c820017de218a (diff) | |
download | mana-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.gz mana-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.bz2 mana-2a7bc0b7d4dbec6893d25738aed22e2997494479.tar.xz mana-2a7bc0b7d4dbec6893d25738aed22e2997494479.zip |
Add right click whisper
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popupmenu.cpp | 8 |
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) |