diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:33:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:33:55 +0300 |
commit | 5c504a65d5f0e66c653e7bf1085d326f6b636ed6 (patch) | |
tree | 6aa2b7f8cd79c778ca2fb6d3010323e76b0144d3 /src/gui | |
parent | bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b (diff) | |
download | manaplus-5c504a65d5f0e66c653e7bf1085d326f6b636ed6.tar.gz manaplus-5c504a65d5f0e66c653e7bf1085d326f6b636ed6.tar.bz2 manaplus-5c504a65d5f0e66c653e7bf1085d326f6b636ed6.tar.xz manaplus-5c504a65d5f0e66c653e7bf1085d326f6b636ed6.zip |
Add for homunculus popup menu commands feed and kill.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index a33de2b83..91c09002b 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -306,15 +306,26 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) case ActorType::Mercenary: // TRANSLATORS: popup menu item - // TRANSLATORS: fire mercenary + // TRANSLATORS: Mercenary move to master mBrowserBox->addRow("mercenary to master", _("Move to master")); mBrowserBox->addRow("##3---"); + // TRANSLATORS: popup menu item + // TRANSLATORS: fire mercenary mBrowserBox->addRow("fire mercenary", _("Fire")); mBrowserBox->addRow("##3---"); break; case ActorType::Homunculus: + // TRANSLATORS: popup menu item + // TRANSLATORS: Mercenary move to master mBrowserBox->addRow("homunculus to master", _("Move to master")); + // TRANSLATORS: popup menu item + // TRANSLATORS: feed homunculus + mBrowserBox->addRow("homunculus feed", _("Feed")); + mBrowserBox->addRow("##3---"); + // TRANSLATORS: popup menu item + // TRANSLATORS: delete homunculus + mBrowserBox->addRow("homunculus delete", _("Kill")); mBrowserBox->addRow("##3---"); break; @@ -1874,6 +1885,14 @@ void PopupMenu::handleLink(const std::string &link, { homunculusHandler->moveToMaster(); } + else if (link == "homunculus feed") + { + homunculusHandler->feed(); + } + else if (link == "homunculus delete") + { + homunculusHandler->fire(); + } else if (link == "pet feed") { petHandler->feed(); |