From 5c504a65d5f0e66c653e7bf1085d326f6b636ed6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 17:33:55 +0300 Subject: Add for homunculus popup menu commands feed and kill. --- src/gui/popups/popupmenu.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src/gui/popups') 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(); -- cgit v1.2.3-70-g09d2