summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorccc <cc@mail.com>2022-12-21 11:17:02 +0100
committerjak1 <jak1@themanaworld.org>2022-12-27 02:24:55 +0100
commit252ab4b6bcc73c4a798ed4fce5768daf4eac779a (patch)
tree1a68d9bfde6408c8d29098ffc0392462c781efb8 /src/gui/popups
parentfb262ec89ebc0ce8461f9f03716281b99115e2be (diff)
downloadManaVerse-252ab4b6bcc73c4a798ed4fce5768daf4eac779a.tar.gz
ManaVerse-252ab4b6bcc73c4a798ed4fce5768daf4eac779a.tar.bz2
ManaVerse-252ab4b6bcc73c4a798ed4fce5768daf4eac779a.tar.xz
ManaVerse-252ab4b6bcc73c4a798ed4fce5768daf4eac779a.zip
Add mobinfo command to popup menu
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 0542fd72a..3ef275aae 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -414,6 +414,13 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to ignore list
_("Add to ignore list"));
+ if (isAllowCommand(ServerCommandType::mobinfo))
+ {
+ mBrowserBox->addRow("/monsterinfo 'BEINGSUBTYPEID'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: show monster info
+ _("Monster info"));
+ }
}
}
break;