summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 21:15:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 21:15:55 +0300
commite97e8daf9ade0b88d52b5a447044bb4a61eccc86 (patch)
tree3c9f7ed1aedbe7185801ff21829ff4d3c36663c2 /src/gui
parente295dea5cd695b716d2617b8949da992ebdab71c (diff)
downloadmv-e97e8daf9ade0b88d52b5a447044bb4a61eccc86.tar.gz
mv-e97e8daf9ade0b88d52b5a447044bb4a61eccc86.tar.bz2
mv-e97e8daf9ade0b88d52b5a447044bb4a61eccc86.tar.xz
mv-e97e8daf9ade0b88d52b5a447044bb4a61eccc86.zip
Remove "move" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp41
1 files changed, 7 insertions, 34 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 625d6822e..6ae15248e 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -240,7 +240,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
mBrowserBox->addRow("/nuke 'NAME'", _("Nuke"));
// TRANSLATORS: popup menu item
// TRANSLATORS: move to player location
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigateto 'NAME'", _("Move"));
addPlayerMisc();
addBuySell(being);
addChat(being);
@@ -271,7 +271,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
mBrowserBox->addRow("##3---");
// TRANSLATORS: popup menu item
// TRANSLATORS: move to npc location
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigateto 'NAME'", _("Move"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add comment to npc
mBrowserBox->addRow("addcomment", _("Add comment"));
@@ -491,7 +491,7 @@ void PopupMenu::showPlayerPopup(const std::string &nick)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: move to player position
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigate 'X' 'Y'", _("Move"));
}
}
}
@@ -642,7 +642,7 @@ void PopupMenu::showMapPopup(const int x, const int y,
}
// TRANSLATORS: popup menu item
// TRANSLATORS: move to map item
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigate 'X' 'Y'", _("Move"));
// TRANSLATORS: popup menu item
// TRANSLATORS: move camera to map item
mBrowserBox->addRow("movecamera", _("Move camera"));
@@ -808,7 +808,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab)
addFollow();
// TRANSLATORS: popup menu item
// TRANSLATORS: move to player position
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigateto 'NAME'", _("Move"));
addPlayerMisc();
addBuySell(being);
mBrowserBox->addRow("##3---");
@@ -869,7 +869,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: move to player location
- mBrowserBox->addRow("move", _("Move"));
+ mBrowserBox->addRow("/navigateto 'NAME'", _("Move"));
}
}
}
@@ -982,34 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "move" && !mNick.empty())
- {
- if (localPlayer)
- {
- if (being)
- {
- localPlayer->navigateTo(being->getTileX(), being->getTileY());
- }
- else if (localPlayer->isInParty())
- {
- const Party *const party = localPlayer->getParty();
- if (party)
- {
- const PartyMember *const m = party->getMember(mNick);
- const PartyMember *const o = party->getMember(
- localPlayer->getName());
- if (m && o && m->getMap() == o->getMap())
- localPlayer->navigateTo(m->getX(), m->getY());
- }
- }
- }
- }
- else if (link == "move" && (mX || mY))
- {
- if (localPlayer)
- localPlayer->navigateTo(mX, mY);
- }
- else if (link == "movecamera" && (mX || mY))
+ if (link == "movecamera" && (mX || mY))
{
if (viewport)
viewport->moveCameraToPosition(mX * mapTileSize, mY * mapTileSize);