diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-14 23:42:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-14 23:42:09 +0300 |
commit | 4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0 (patch) | |
tree | 2115d5af0ecc1d041e292be30105716b68419fb7 /src/gui/popups/itempopup.h | |
parent | fc23b24f67b5c8dc6744df01fbb9b05aee93a70c (diff) | |
download | manaverse-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.gz manaverse-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.bz2 manaverse-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.xz manaverse-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.zip |
In item popup show attached cards to item.
Diffstat (limited to 'src/gui/popups/itempopup.h')
-rw-r--r-- | src/gui/popups/itempopup.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; |