diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-01 15:40:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-01 15:40:45 +0300 |
commit | c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158 (patch) | |
tree | d5e06d87250dd4be2a70b672eaea7145396d5dc5 /src/gui/popups | |
parent | 5f4951d34c52e92ddd38606b140e8dcded25448c (diff) | |
download | plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.gz plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.bz2 plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.xz plus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.zip |
Add chat command /guildrecall. Also add it to player context menu.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index dae11fd12..101072d58 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -2771,12 +2771,22 @@ void PopupMenu::showPlayerGMCommands(const std::string &name) { Being *const being = actorManager->findBeingByName(name, ActorType::Player); - if (being && !being->getPartyName().empty()) + if (being) { - mBrowserBox->addRow("/partyrecall 'PARTY'", - // TRANSLATORS: popup menu item - // TRANSLATORS: recall all party to player location - _("Recall party")); + if (!being->getPartyName().empty()) + { + mBrowserBox->addRow("/partyrecall 'PARTY'", + // TRANSLATORS: popup menu item + // TRANSLATORS: recall all party members to player location + _("Recall party")); + } + if (!being->getGuildName().empty()) + { + mBrowserBox->addRow("/guildrecall 'PARTY'", + // TRANSLATORS: popup menu item + // TRANSLATORS: recall all guild members to player location + _("Recall guild")); + } } if (localPlayer && localPlayer->isInParty()) { |