summaryrefslogtreecommitdiff
path: root/src/gui/smileycontainer.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-10 13:42:43 -0700
committerIra Rice <irarice@gmail.com>2009-01-10 13:42:43 -0700
commitf634a2811c613d6ec43915841b37b66d54e2d4d4 (patch)
tree4195b9ef6baac725b8abacddd764f42dbf6492ba /src/gui/smileycontainer.cpp
parentd80a7f02c4e1b9f9a728364b61118cc25d872a58 (diff)
downloadmana-f634a2811c613d6ec43915841b37b66d54e2d4d4.tar.gz
mana-f634a2811c613d6ec43915841b37b66d54e2d4d4.tar.bz2
mana-f634a2811c613d6ec43915841b37b66d54e2d4d4.tar.xz
mana-f634a2811c613d6ec43915841b37b66d54e2d4d4.zip
Made a few more window components use a transparency under OpenGL, as
well as some code style cleanups in the skill dialog. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/smileycontainer.cpp')
-rw-r--r--src/gui/smileycontainer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/smileycontainer.cpp b/src/gui/smileycontainer.cpp
index afe4ce15..d221f55c 100644
--- a/src/gui/smileycontainer.cpp
+++ b/src/gui/smileycontainer.cpp
@@ -24,6 +24,7 @@
#include <guichan/mouseinput.hpp>
#include <guichan/selectionlistener.hpp>
+#include "../configuration.h"
#include "../graphics.h"
#include "../log.h"
#include "../smileyshortcut.h"
@@ -51,6 +52,8 @@ SmileyContainer::SmileyContainer():
mSelImg = resman->getImage("graphics/gui/selection.png");
if (!mSelImg) logger->error(_("Unable to load selection.png"));
+ mSelImg->setAlpha(config.getValue("guialpha", 0.8));
+
mMaxSmiley = mSmileyImg->size();
addMouseListener(this);