diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-10 04:32:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-10 04:32:18 +0300 |
commit | 1fa706c6669db9a2d060d100cf591fd505012a9d (patch) | |
tree | dee79462d680321e05c6a688146d2116f83bb3f6 /src/gui/popups | |
parent | 2291f18b6366312916903de6cfe973379ebd536d (diff) | |
download | manaverse-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.gz manaverse-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.bz2 manaverse-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.xz manaverse-1fa706c6669db9a2d060d100cf591fd505012a9d.zip |
Add chat command for show player items.s20170510
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
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")); |