From 4e97da8e138b21a5f5bea75e6a8d3211e4f28594 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Mar 2016 23:29:04 +0300 Subject: Add enum for item types. --- src/gui/widgets/selldialog.cpp | 2 +- src/gui/widgets/selldialog.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') 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); -- cgit v1.2.3-60-g2f50