diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-12 20:35:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-12 20:35:30 +0300 |
commit | 1031587ed2e4623d622bcc602c262290e14ea4c5 (patch) | |
tree | 2d1aaf848192694dac57d46b10fbec5b9df6e69e /src/gui/theme.h | |
parent | f7abd3b849d218af2a57e14490a8054d01be0e6f (diff) | |
download | manaplus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.gz manaplus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.bz2 manaplus-1031587ed2e4623d622bcc602c262290e14ea4c5.tar.xz manaplus-1031587ed2e4623d622bcc602c262290e14ea4c5.zip |
Add for windows close button hover image.
New theme parameter "closeImageHighlighted".
It have attributes same as "closeImage".
Diffstat (limited to 'src/gui/theme.h')
-rw-r--r-- | src/gui/theme.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/theme.h b/src/gui/theme.h index 04c355e0f..245289096 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -72,8 +72,8 @@ class Skin /** * Returns the image used by a close button for this skin. */ - Image *getCloseImage() const - { return mCloseImage; } + Image *getCloseImage(const bool state) const + { return state ? mCloseImageHighlighted : mCloseImage; } /** * Returns the image used by a sticky button for this skin. @@ -117,6 +117,7 @@ class Skin std::string mName; /**< Name of the skin to use */ ImageRect mBorder; /**< The window border and background */ Image *mCloseImage; /**< Close Button Image */ + Image *mCloseImageHighlighted; /**< Highlighted close Button Image */ Image *mStickyImageUp; /**< Sticky Button Image */ Image *mStickyImageDown; /**< Sticky Button Image */ int mPadding; |