diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-07 13:15:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-07 13:15:22 +0300 |
commit | 6f86c11e0ecee3c980cd7e3cfca8ef72e7aa8a02 (patch) | |
tree | 2d1923e799a43754b15728c8e6a23f9c283bd825 /src/gui/popups/popupmenu.cpp | |
parent | d9732855666b402c0a492d6618ce9ab930089219 (diff) | |
download | manaplus-6f86c11e0ecee3c980cd7e3cfca8ef72e7aa8a02.tar.gz manaplus-6f86c11e0ecee3c980cd7e3cfca8ef72e7aa8a02.tar.bz2 manaplus-6f86c11e0ecee3c980cd7e3cfca8ef72e7aa8a02.tar.xz manaplus-6f86c11e0ecee3c980cd7e3cfca8ef72e7aa8a02.zip |
Add into mobs and foring pets context menu item for timing pet.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index e87407260..9c80415f6 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -299,6 +299,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) // TRANSLATORS: popup menu item // TRANSLATORS: attack monster mBrowserBox->addRow("/attack :'BEINGID'", _("Attack")); + addCatchPetCommands(); addGmCommands(); mBrowserBox->addRow("##3---"); @@ -394,6 +395,10 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) mBrowserBox->addRow("pet to egg", _("Return to egg")); mBrowserBox->addRow("##3---"); } + else + { + addCatchPetCommands(); + } break; case ActorType::SkillUnit: // +++ need impliment menu @@ -3154,6 +3159,17 @@ void PopupMenu::addMailCommands() #endif } +void PopupMenu::addCatchPetCommands() +{ +#ifdef EATHENA_SUPPORT + if (!serverFeatures->haveServerPets()) + return; + // TRANSLATORS: popup menu item + // TRANSLATORS: catch pet command + mBrowserBox->addRow("/catchpet :'BEINGID'", _("Taming pet")); +#endif +} + void PopupMenu::moveUp() { mBrowserBox->moveSelectionUp(); |