summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-30 17:19:59 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-30 18:19:54 +0300
commite196607ec6a16204579f8e37e1c88c133bf1db37 (patch)
tree37fa0856b49d702b7f3058aa009581f5a7549ecc /src/gui/widgets/itemcontainer.h
parent41049787e0b39550675c682e1c5740e5ff054df6 (diff)
downloadplus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.gz
plus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.bz2
plus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.xz
plus-e196607ec6a16204579f8e37e1c88c133bf1db37.zip
Add support in themes to draw each inventory cell background.
By default no images for cell background in any theme.
Diffstat (limited to 'src/gui/widgets/itemcontainer.h')
-rw-r--r--src/gui/widgets/itemcontainer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/widgets/itemcontainer.h b/src/gui/widgets/itemcontainer.h
index f87eac55d..eb422e269 100644
--- a/src/gui/widgets/itemcontainer.h
+++ b/src/gui/widgets/itemcontainer.h
@@ -131,6 +131,8 @@ class ItemContainer final : public Widget,
void unsetInventory()
{ mInventory = nullptr; }
+ void setCellBackgroundImage(const std::string &xmlName);
+
private:
enum Direction
{
@@ -176,10 +178,12 @@ class ItemContainer final : public Widget,
Inventory *mInventory;
Image *mSelImg;
Image *mProtectedImg;
+ Image *mCellBackgroundImg;
std::string mName;
int *mShowMatrix;
Skin *mSkin;
+ ImageCollection *mVertexes;
Color mEquipedColor;
Color mEquipedColor2;
Color mUnEquipedColor;
@@ -202,6 +206,7 @@ class ItemContainer final : public Widget,
SelectionState mSelectionStatus;
bool mForceQuantity;
bool mDescItems;
+ bool mRedraw;
};
#endif // GUI_WIDGETS_ITEMCONTAINER_H