summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-04-03 10:26:00 +0000
committerDavid Athay <ko2fan@gmail.com>2008-04-03 10:26:00 +0000
commit1bd3c1b9db33cb9dff2570f4224fae73970d5895 (patch)
treecbec38ef22773efa9082e0fec1c0021345a4a92c /src/gui/popupmenu.cpp
parent3d9e141447b688c10e46e3dc8033dba26b902e00 (diff)
downloadmana-client-1bd3c1b9db33cb9dff2570f4224fae73970d5895.tar.gz
mana-client-1bd3c1b9db33cb9dff2570f4224fae73970d5895.tar.bz2
mana-client-1bd3c1b9db33cb9dff2570f4224fae73970d5895.tar.xz
mana-client-1bd3c1b9db33cb9dff2570f4224fae73970d5895.zip
Added right click to invite to guild
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index a1148379..dfd85815 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -81,6 +81,8 @@ void PopupMenu::showPopup(int x, int y, Being *being)
mBrowserBox->addRow(strprintf(_("@@attack|Attack %s@@"), name.c_str()));
//mBrowserBox->addRow("@@follow|Follow " + name + "@@");
//mBrowserBox->addRow("@@buddy|Add " + name + " to Buddy List@@");
+ mBrowserBox->addRow(strprintf(_("@@guild|Invite %s@@"), name.c_str()));
+ //mBrowserBox->addRow(strprintf(_("@@party|Invite %s to join your party@@"), name.c_str()));
}
break;
@@ -137,6 +139,21 @@ void PopupMenu::handleLink(const std::string& link)
tradePartnerName = mBeing->getName();
}
+ // Guild action
+ else if (link == "guild" &&
+ mBeing != NULL &&
+ mBeing->getType() == Being::PLAYER)
+ {
+ player_node->invite(mBeing);
+ }
+
+ /*
+ // Add player to your party
+ else if (link == "party")
+ {
+ }
+ */
+
/*
// Follow Player action
else if (link == "follow")