summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-26 23:25:35 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-26 23:25:35 -0700
commit62d86f1c84678e04e7015a8f2440f0c251887c21 (patch)
tree5f79a8c7c733241dbfe0b325923629ddcd2026d1 /src/gui/popupmenu.cpp
parentedf478e1eb7987e35d56df2777fbeb389dc915ec (diff)
downloadmana-62d86f1c84678e04e7015a8f2440f0c251887c21.tar.gz
mana-62d86f1c84678e04e7015a8f2440f0c251887c21.tar.bz2
mana-62d86f1c84678e04e7015a8f2440f0c251887c21.tar.xz
mana-62d86f1c84678e04e7015a8f2440f0c251887c21.zip
Merge a little more and remove the BuddyWindow
The BuddyWindow was only half implemented and would have been made redundant with the planned social window.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 54c0f334..9f3ecc7d 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -79,8 +79,7 @@ void PopupMenu::showPopup(int x, int y, Being *being)
{
case Being::PLAYER:
{
- // Players can be traded with. Later also follow and
- // add as buddy will be options in this menu.
+ // Players can be traded with.
mBrowserBox->addRow(strprintf("@@trade|%s@@",
strprintf(_("Trade with %s..."),
name.c_str()).c_str()));
@@ -125,14 +124,9 @@ void PopupMenu::showPopup(int x, int y, Being *being)
/*mBrowserBox->addRow(strprintf("@@follow|%s@@",
strprintf(_("Follow %s"),
name.c_str()).c_str()));*/
- /*mBrowserBox->addRow(strprintf("@@buddy|%s@@",
- strprintf(_("Add %s to Buddy List"),
- name.c_str()).c_str()));*/
-#ifdef MANASERV_SUPPORT
mBrowserBox->addRow(strprintf("@@guild|%s@@",
strprintf(_("Invite %s to join your guild"),
name.c_str()).c_str()));
-#endif
if (player_node->isInParty())
mBrowserBox->addRow(strprintf("@@party|%s@@",
strprintf(_("Invite %s to join your party"),
@@ -253,7 +247,6 @@ void PopupMenu::handleLink(const std::string &link)
{
player_relations.setRelation(being->getName(), PlayerRelation::FRIEND);
}
-#ifdef MANASERV_SUPPORT
// Guild action
else if (link == "guild" &&
being != NULL &&
@@ -261,23 +254,12 @@ void PopupMenu::handleLink(const std::string &link)
{
player_node->inviteToGuild(being);
}
-#endif
/*
// Follow Player action
else if (link == "follow")
{
}*/
- /*
- // Add Buddy action
- else if ((link == "buddy") && being && being->isPlayer())
- {
- if (!buddyWindow->isVisible())
- buddyWindow->setVisible(true);
-
- buddyWindow->addBuddy(being->getName());
- }*/
-
// Pick Up Floor Item action
else if ((link == "pickup") && mFloorItem)
{