summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 27191f92e..c022b650a 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -245,13 +245,22 @@ class ItemInfo final
const SpriteToItemMap *getSpriteToItemReplaceMap(const int directions)
const A_WARN_UNUSED;
- std::string getDyeColorsString(const ItemColor color) const A_WARN_UNUSED;
+ std::string getDyeColorsString(const ItemColor color)
+ const A_WARN_UNUSED;
+
+ std::string getDyeIconColorsString(const ItemColor color)
+ const A_WARN_UNUSED;
void setColorsList(const std::string &name);
+ void setIconColorsList(const std::string &name);
+
bool isHaveColors() const A_WARN_UNUSED
{ return !mColorsListName.empty(); }
+ bool isHaveIconColors() const A_WARN_UNUSED
+ { return !mIconColorsListName.empty(); }
+
const std::string replaceColors(std::string str,
const ItemColor color)
const A_WARN_UNUSED;
@@ -274,10 +283,16 @@ class ItemInfo final
int getColorsSize() const
{ return mColorsList ? static_cast<int>(mColorsList->size()) : 0; }
- std::string getColorName(const ItemColor idx) const;
+ int getIconColorsSize() const
+ { return mIconColorsList ? static_cast<int>(mIconColorsList->size())
+ : 0; }
+ std::string getColorName(const ItemColor idx) const;
std::string getColor(const ItemColor idx) const;
+ std::string getIconColorName(const ItemColor idx) const;
+ std::string getIconColor(const ItemColor idx) const;
+
int mDrawBefore[10];
int mDrawAfter[10];
int mDrawPriority[10];
@@ -325,7 +340,9 @@ class ItemInfo final
std::map <ItemSoundEvent::Type, SoundInfoVect> mSounds;
std::map <int, int> mTags;
const std::map <ItemColor, ColorDB::ItemColorData> *mColorsList;
+ const std::map <ItemColor, ColorDB::ItemColorData> *mIconColorsList;
std::string mColorsListName;
+ std::string mIconColorsListName;
ItemColor mCardColor;
int mHitEffectId;
int mCriticalHitEffectId;