From 4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jul 2015 23:42:09 +0300 Subject: In item popup show attached cards to item. --- src/gui/popups/itempopup.h | 6 +++++- 1 file changed, 5 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 4c63ff785..6072bc90c 100644 --- a/src/gui/popups/itempopup.h +++ b/src/gui/popups/itempopup.h @@ -60,7 +60,8 @@ class ItemPopup final : public Popup void setItem(const ItemInfo &item, const unsigned char color, const bool showImage, - int id); + int id, + const int *const cards); void setItem(const Item *const item, const bool showImage); @@ -68,10 +69,13 @@ class ItemPopup final : public Popup void mouseMoved(MouseEvent &event) override final; private: + std::string getCardsString(const int *const cards); + Label *mItemName; TextBox *mItemDesc; TextBox *mItemEffect; TextBox *mItemWeight; + TextBox *mItemCards; ItemType::Type mItemType; Icon *mIcon; std::string mLastName; -- cgit v1.2.3-60-g2f50