diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-11 12:34:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-11 12:34:18 +0300 |
commit | 30445ed459b803d8ec5a2a847c8e20feab4d14f2 (patch) | |
tree | 42f7572038516a9ad9d8d729100e4e7bdc6f40cf /src/gui/popups/popupmenu.cpp | |
parent | 9ee38ba70d51a99b6e5c1cc37dcfc6ccc4f1f7de (diff) | |
download | manaverse-30445ed459b803d8ec5a2a847c8e20feab4d14f2.tar.gz manaverse-30445ed459b803d8ec5a2a847c8e20feab4d14f2.tar.bz2 manaverse-30445ed459b803d8ec5a2a847c8e20feab4d14f2.tar.xz manaverse-30445ed459b803d8ec5a2a847c8e20feab4d14f2.zip |
Remove "trade" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 0d917d542..7202c74e4 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -164,7 +164,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being) { // TRANSLATORS: popup menu item // TRANSLATORS: trade with player - mBrowserBox->addRow("trade", _("Trade")); + mBrowserBox->addRow("/trade 'NAME'", _("Trade")); // TRANSLATORS: popup menu item // TRANSLATORS: trade attack player mBrowserBox->addRow("attack", _("Attack")); @@ -792,7 +792,7 @@ void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab) // TRANSLATORS: popup menu item // TRANSLATORS: trade with player - mBrowserBox->addRow("trade", _("Trade")); + mBrowserBox->addRow("/trade 'NAME'", _("Trade")); // TRANSLATORS: popup menu item // TRANSLATORS: attack player mBrowserBox->addRow("attack", _("Attack")); @@ -979,16 +979,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - // Trade action - if (link == "trade" && being && - being->getType() == ActorType::Player) - { - tradeHandler->request(being); - tradePartnerName = being->getName(); - if (tradeWindow) - tradeWindow->clear(); - } - else if (link == "buy" && being && mBeingId != 0) + if (link == "buy" && being && mBeingId != 0) { if (being->getType() == ActorType::Npc) npcHandler->buy(mBeingId); |