diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-24 23:29:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-24 23:29:04 +0300 |
commit | 4e97da8e138b21a5f5bea75e6a8d3211e4f28594 (patch) | |
tree | c10d3cad963066a908ebd42041723e110a0c9bf0 /src/gui/widgets | |
parent | ca0ca278d0c4aed9a6d50bb9a8982f5261151ab8 (diff) | |
download | manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.gz manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.bz2 manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.xz manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.zip |
Add enum for item types.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/selldialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/selldialog.h | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp index 17664ed78..c0b7fdd24 100644 --- a/src/gui/widgets/selldialog.cpp +++ b/src/gui/widgets/selldialog.cpp @@ -221,7 +221,7 @@ void SellDialog::addItem(const Item *const item, const int price) } ShopItem *SellDialog::addItem(const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price) diff --git a/src/gui/widgets/selldialog.h b/src/gui/widgets/selldialog.h index 2918055c9..46512225f 100644 --- a/src/gui/widgets/selldialog.h +++ b/src/gui/widgets/selldialog.h @@ -23,6 +23,8 @@ #ifndef GUI_WIDGETS_SELLDIALOG_H #define GUI_WIDGETS_SELLDIALOG_H +#include "enums/resources/itemtype.h" + #include "enums/simpletypes/advanced.h" #include "enums/simpletypes/issell.h" #include "enums/simpletypes/itemcolor.h" @@ -72,7 +74,8 @@ class SellDialog notfinal : public Window, /** * Adds an item to the inventory. */ - void addItem(const Item *const item, const int price); + void addItem(const Item *const item, + const int price); /** * Called when receiving actions from the widgets. @@ -97,7 +100,7 @@ class SellDialog notfinal : public Window, void setVisible(Visible visible) override final; ShopItem *addItem(const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price); |