diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-22 23:20:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-22 23:20:05 +0300 |
commit | 3c51082082397b0564a224214249a096750b56c6 (patch) | |
tree | fc4bb3b4d511842e2a9f0f608d51fb3539a40ae9 /src/gui/popups | |
parent | f6596726b6978a7380de163740e6b65c8394ca42 (diff) | |
download | plus-3c51082082397b0564a224214249a096750b56c6.tar.gz plus-3c51082082397b0564a224214249a096750b56c6.tar.bz2 plus-3c51082082397b0564a224214249a096750b56c6.tar.xz plus-3c51082082397b0564a224214249a096750b56c6.zip |
Add chat command for return pet to egg.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 0503e6e8f..d610182e6 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -396,13 +396,14 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) msg = info->getString(0); if (!msg.empty()) { - mBrowserBox->addRow("pet to egg", msg.c_str()); + mBrowserBox->addRow("/petreturnegg", msg.c_str()); } else { - // TRANSLATORS: popup menu item - // TRANSLATORS: pet return to egg - mBrowserBox->addRow("pet to egg", _("Return to egg")); + mBrowserBox->addRow("/petreturnegg", + // TRANSLATORS: popup menu item + // TRANSLATORS: pet return to egg + _("Return to egg")); } mBrowserBox->addRow("##3---"); } @@ -1302,10 +1303,6 @@ void PopupMenu::handleLink(const std::string &link, showCraftPopup(); return; } - else if (link == "pet to egg") - { - petHandler->returnToEgg(); - } else if (link == "pet unequip") { petHandler->unequip(); |