summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-07 16:59:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-07 16:59:33 +0300
commit62c5097904bfc6c6e44e776730ea1d01aaf891c2 (patch)
tree57216dc3193690c95152405ba50ab222d431a089 /src/gui/windows/npcdialog.h
parent8eb2e7d993ad9759da2fbeccea1a924b1b7f64dd (diff)
downloadmv-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.gz
mv-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.bz2
mv-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.xz
mv-62c5097904bfc6c6e44e776730ea1d01aaf891c2.zip
Add partial implimentation for craft inventory. For now almost same with npc inventory.
Diffstat (limited to 'src/gui/windows/npcdialog.h')
-rw-r--r--src/gui/windows/npcdialog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h
index 7a27e0100..7868fd7d1 100644
--- a/src/gui/windows/npcdialog.h
+++ b/src/gui/windows/npcdialog.h
@@ -35,6 +35,7 @@
class Being;
class Button;
class BrowserBox;
+class ComplexInventory;
class Container;
class ExtendedListBox;
class ItemLinkHandler;
@@ -168,6 +169,8 @@ class NpcDialog final : public Window,
void itemIndexRequest(const int size);
+ void itemCraftRequest(const int size);
+
void move(const int amount);
void setVisible(Visible visible) override final;
@@ -286,6 +289,7 @@ class NpcDialog final : public Window,
Button *mResetButton A_NONNULLPOINTER;
Inventory *mInventory A_NONNULLPOINTER;
+ ComplexInventory *mComplexInventory A_NONNULLPOINTER;
ItemContainer *mItemContainer A_NONNULLPOINTER;
ScrollArea *mItemScrollArea A_NONNULLPOINTER;
@@ -296,7 +300,8 @@ class NpcDialog final : public Window,
NPC_INPUT_STRING,
NPC_INPUT_INTEGER,
NPC_INPUT_ITEM,
- NPC_INPUT_ITEM_INDEX
+ NPC_INPUT_ITEM_INDEX,
+ NPC_INPUT_ITEM_CRAFT
};
enum NpcActionState