summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-10 01:07:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-10 01:07:30 +0300
commit8ca5407776fa9c3038b608f9caf401952c2631d6 (patch)
tree1a30526373487e4c4a18b22a965b75ca369b0fdd /src/gui
parente62ca47b5ec9c8e630933a674c1419d911722f85 (diff)
downloadplus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.gz
plus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.bz2
plus-8ca5407776fa9c3038b608f9caf401952c2631d6.tar.xz
plus-8ca5407776fa9c3038b608f9caf401952c2631d6.zip
Add chat command for move monster in attack list into one position down.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index cdc6e7494..d1d5ddd8a 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1270,40 +1270,6 @@ void PopupMenu::handleLink(const std::string &link,
}
}
}
- else if (link == "attack movedown")
- {
- if (actorManager)
- {
- const int idx = actorManager->getAttackMobIndex(mName);
- const int size = actorManager->getAttackMobsSize();
- if (idx + 1 < size)
- {
- std::list<std::string> mobs
- = actorManager->getAttackMobs();
- std::list<std::string>::iterator it = mobs.begin();
- std::list<std::string>::iterator it2 = it;
- while (it != mobs.end())
- {
- if (*it == mName)
- {
- ++ it2;
- if (it2 == mobs.end())
- break;
-
- mobs.splice(it, mobs, it2);
- actorManager->setAttackMobs(mobs);
- actorManager->rebuildAttackMobs();
- break;
- }
- ++ it;
- ++ it2;
- }
-
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
- }
else if (link == "priority movedown")
{
if (localPlayer && actorManager)
@@ -2122,7 +2088,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y,
{
// TRANSLATORS: popup menu item
// TRANSLATORS: move attack target down
- mBrowserBox->addRow("attack movedown", _("Move down"));
+ mBrowserBox->addRow("/moveattackdown 'NAME'", _("Move down"));
}
break;
}