summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-09 18:47:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-09 18:47:10 +0300
commitb3fa7a53a29a1001935514a38f140af2b816771a (patch)
treea1d9449975a266e64bcc377ca692eb8d04f645e4 /src/gui/popups/popupmenu.h
parentc0dbb0d20fb321ecf12cdcc22d960b3572e35286 (diff)
downloadplus-b3fa7a53a29a1001935514a38f140af2b816771a.tar.gz
plus-b3fa7a53a29a1001935514a38f140af2b816771a.tar.bz2
plus-b3fa7a53a29a1001935514a38f140af2b816771a.tar.xz
plus-b3fa7a53a29a1001935514a38f140af2b816771a.zip
Allow for each item replace equip/use menu item to custom menu.
Separate menus supproted for inventory, storage, cart.
Diffstat (limited to 'src/gui/popups/popupmenu.h')
-rw-r--r--src/gui/popups/popupmenu.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index 6d0c141f5..5b554e197 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -234,8 +234,13 @@ class PopupMenu final : public Popup, public LinkHandler
void addProtection();
- void addUseDrop(const Item *const item,
- const bool isProtected) A_NONNULL(2);
+ void addUse(const Item *const item) A_NONNULL(2);
+
+ void addItemMenu(const Item *const item,
+ const InventoryTypeT type) A_NONNULL(2);
+
+ void addDrop(const Item *const item,
+ const bool isProtected) A_NONNULL(2);
void addGmCommands();