From e465ecdf0c7f867a62236a5a0945a85f35eee039 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Apr 2017 20:36:23 +0300 Subject: Show item options in item popups. --- src/gui/popups/itempopup.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui/popups/itempopup.h') diff --git a/src/gui/popups/itempopup.h b/src/gui/popups/itempopup.h index 0ba6c4406..de552eca7 100644 --- a/src/gui/popups/itempopup.h +++ b/src/gui/popups/itempopup.h @@ -36,6 +36,8 @@ class ItemInfo; class Label; class TextBox; +struct ItemOptionsList; + /** * A popup that displays information about an item. */ @@ -63,7 +65,8 @@ class ItemPopup final : public Popup const ItemColor color, const bool showImage, int id, - const int *const cards); + const int *const cards, + const ItemOptionsList *const options); void setItem(const Item *const item, const bool showImage); @@ -75,11 +78,14 @@ class ItemPopup final : public Popup private: std::string getCardsString(const int *const cards); + std::string getOptionsString(const ItemOptionsList *const options); + Label *mItemName A_NONNULLPOINTER; TextBox *mItemDesc A_NONNULLPOINTER; TextBox *mItemEffect A_NONNULLPOINTER; TextBox *mItemWeight A_NONNULLPOINTER; TextBox *mItemCards A_NONNULLPOINTER; + TextBox *mItemOptions A_NONNULLPOINTER; ItemDbTypeT mItemType; Icon *mIcon A_NONNULLPOINTER; std::string mLastName; -- cgit v1.2.3-60-g2f50