summaryrefslogtreecommitdiff
path: root/src/gui/skin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skin.h')
-rw-r--r--src/gui/skin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/skin.h b/src/gui/skin.h
index b8a1242e..c90952e3 100644
--- a/src/gui/skin.h
+++ b/src/gui/skin.h
@@ -27,6 +27,7 @@
#include "../graphics.h"
+class ConfigListener;
class Image;
class Skin
@@ -67,6 +68,11 @@ class Skin
*/
unsigned int getMinHeight();
+ /**
+ * Updates the alpha value of the skin
+ */
+ void updateAlpha();
+
int instances;
private:
@@ -84,6 +90,8 @@ typedef Skins::iterator SkinIterator;
class SkinLoader
{
public:
+ friend class SkinConfigListener;
+
SkinLoader();
~SkinLoader();
@@ -92,8 +100,18 @@ class SkinLoader
*/
Skin* load(const std::string &filename);
+ /**
+ * Updates the alpha values of all of the skins
+ */
+ void updateAlpha();
+
private:
Skins mSkins;
+
+ /**
+ * The config listener that listens to changes relevant to all skins.
+ */
+ static ConfigListener *skinConfigListener;
};
extern SkinLoader* skinLoader;