summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-10 00:26:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-10 00:26:25 +0300
commite62ca47b5ec9c8e630933a674c1419d911722f85 (patch)
treebc320f932c25b1185bf51615cc5a9d50a57c6efe /src/gui
parent62d8af5b803c053198afaf4a3bc6018460f1b9f8 (diff)
downloadManaVerse-e62ca47b5ec9c8e630933a674c1419d911722f85.tar.gz
ManaVerse-e62ca47b5ec9c8e630933a674c1419d911722f85.tar.bz2
ManaVerse-e62ca47b5ec9c8e630933a674c1419d911722f85.tar.xz
ManaVerse-e62ca47b5ec9c8e630933a674c1419d911722f85.zip
Add chat command for move monster in attack list into one position up.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index ff2b7cfa6..cdc6e7494 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1239,36 +1239,6 @@ void PopupMenu::handleLink(const std::string &link,
dialog->setActionEventId("ok");
dialog->addActionListener(&mPlayerListener);
}
- else if (link == "attack moveup")
- {
- if (actorManager)
- {
- const int idx = actorManager->getAttackMobIndex(mName);
- if (idx > 0)
- {
- 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;
- mobs.splice(it2, mobs, it);
- actorManager->setAttackMobs(mobs);
- actorManager->rebuildAttackMobs();
- break;
- }
- ++ it;
- ++ it2;
- }
-
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
- }
else if (link == "priority moveup")
{
if (actorManager)
@@ -2146,7 +2116,7 @@ void PopupMenu::showAttackMonsterPopup(const int x, const int y,
{
// TRANSLATORS: popup menu item
// TRANSLATORS: move attack target up
- mBrowserBox->addRow("attack moveup", _("Move up"));
+ mBrowserBox->addRow("/moveattackup 'NAME'", _("Move up"));
}
if (idx + 1 < size)
{