diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-30 17:19:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-30 18:19:54 +0300 |
commit | e196607ec6a16204579f8e37e1c88c133bf1db37 (patch) | |
tree | 37fa0856b49d702b7f3058aa009581f5a7549ecc /src/gui/widgets/itemcontainer.h | |
parent | 41049787e0b39550675c682e1c5740e5ff054df6 (diff) | |
download | manaplus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.gz manaplus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.bz2 manaplus-e196607ec6a16204579f8e37e1c88c133bf1db37.tar.xz manaplus-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.h | 5 |
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 |