From e196607ec6a16204579f8e37e1c88c133bf1db37 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Oct 2015 17:19:59 +0300 Subject: Add support in themes to draw each inventory cell background. By default no images for cell background in any theme. --- src/gui/widgets/itemcontainer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/widgets/itemcontainer.h') 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 -- cgit v1.2.3-60-g2f50