summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 13:45:27 +0100
committerBlueSansDouze <bluesansdouze@gmail.com>2010-01-13 14:22:44 +0100
commit94bfab1a7d1ac3626d15c30b8c6668de9455f3ed (patch)
treee569de48e7553e86d2abf0822c2646c4b1c1f95a /src/gui/popupmenu.cpp
parent61959f6a04c6a6712b5334ebd6bf21da4736431f (diff)
downloadmana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.gz
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.bz2
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.tar.xz
mana-94bfab1a7d1ac3626d15c30b8c6668de9455f3ed.zip
Adds a follow manager for users
Right click contextual menu on player "follow" entry Cancel the following by moving with mouse or keys Adds a special behavior for map changes
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index e6cd3f5b..21bab81e 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -126,9 +126,9 @@ void PopupMenu::showPopup(int x, int y, Being *being)
break;
}
- /*mBrowserBox->addRow(strprintf("@@follow|%s@@",
+ mBrowserBox->addRow(strprintf("@@follow|%s@@",
strprintf(_("Follow %s"),
- name.c_str()).c_str()));*/
+ name.c_str()).c_str()));
mBrowserBox->addRow(strprintf("@@guild|%s@@",
strprintf(_("Invite %s to join your guild"),
name.c_str()).c_str()));
@@ -263,11 +263,12 @@ void PopupMenu::handleLink(const std::string &link)
{
player_node->inviteToGuild(being);
}
- /*
+
// Follow Player action
else if (link == "follow")
{
- }*/
+ player_node->setFollow(being->getName());
+ }
// Pick Up Floor Item action
else if ((link == "pickup") && mFloorItem)