summaryrefslogtreecommitdiff
path: root/src/gui/popups/itempopup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-14 23:42:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-14 23:42:09 +0300
commit4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0 (patch)
tree2115d5af0ecc1d041e292be30105716b68419fb7 /src/gui/popups/itempopup.h
parentfc23b24f67b5c8dc6744df01fbb9b05aee93a70c (diff)
downloadmanaplus-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.gz
manaplus-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.bz2
manaplus-4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0.tar.xz
manaplus-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.h6
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;