diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-09 18:47:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-09 18:47:10 +0300 |
commit | b3fa7a53a29a1001935514a38f140af2b816771a (patch) | |
tree | a1d9449975a266e64bcc377ca692eb8d04f645e4 /src/gui/popups/popupmenu.h | |
parent | c0dbb0d20fb321ecf12cdcc22d960b3572e35286 (diff) | |
download | plus-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.h | 9 |
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(); |