From 1fa706c6669db9a2d060d100cf591fd505012a9d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 May 2017 04:32:18 +0300 Subject: Add chat command for show player items. --- src/gui/popups/popupmenu.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 47ef604be..f99332f00 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1239,22 +1239,6 @@ void PopupMenu::handleLink(const std::string &link, dialog->setActionEventId("ok"); dialog->addActionListener(&mPlayerListener); } - else if (link == "items" && being) - { - if (being == localPlayer) - { - if (equipmentWindow && !equipmentWindow->isWindowVisible()) - equipmentWindow->setVisible(Visible_true); - } - else - { - if (beingEquipmentWindow) - { - beingEquipmentWindow->setBeing(being); - beingEquipmentWindow->setVisible(Visible_true); - } - } - } else if (link == "undress item" && being && mItemId) { being->undressItemById(mItemId); @@ -2651,7 +2635,7 @@ void PopupMenu::addChat(const Being *const being) void PopupMenu::addPlayerMisc() { // TRANSLATORS: popup menu item - mBrowserBox->addRow("items", _("Show Items")); + mBrowserBox->addRow("/showitems :'BEINGID'", _("Show Items")); // TRANSLATORS: popup menu item // TRANSLATORS: undress player mBrowserBox->addRow("/undress :'BEINGID'", _("Undress")); -- cgit v1.2.3-70-g09d2