summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-10 04:32:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-10 04:32:18 +0300
commit1fa706c6669db9a2d060d100cf591fd505012a9d (patch)
treedee79462d680321e05c6a688146d2116f83bb3f6 /src/gui/popups
parent2291f18b6366312916903de6cfe973379ebd536d (diff)
downloadmanaplus-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.gz
manaplus-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.bz2
manaplus-1fa706c6669db9a2d060d100cf591fd505012a9d.tar.xz
manaplus-1fa706c6669db9a2d060d100cf591fd505012a9d.zip
Add chat command for show player items.s20170510
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp18
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"));