summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-04-10 12:11:49 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-04-10 12:11:49 +0000
commit7eeb04e1a8bf103e3f8717af1e3ec09f58441bd4 (patch)
tree22d584cba391e68058c6a182fad94c8b87b99339 /src/gui/scrollarea.cpp
parent74c3b49c1242ef7449fe17198270e1b99b9289e2 (diff)
downloadmana-7eeb04e1a8bf103e3f8717af1e3ec09f58441bd4.tar.gz
mana-7eeb04e1a8bf103e3f8717af1e3ec09f58441bd4.tar.bz2
mana-7eeb04e1a8bf103e3f8717af1e3ec09f58441bd4.tar.xz
mana-7eeb04e1a8bf103e3f8717af1e3ec09f58441bd4.zip
Added inventory transparency
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r--src/gui/scrollarea.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index ffeb9a1d..d652c94c 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -24,6 +24,7 @@
#include "scrollarea.h"
#include "gui.h"
#include "../resources/resourcemanager.h"
+#include "../main.h"
ScrollArea::ScrollArea():
gcn::ScrollArea()
@@ -48,6 +49,12 @@ void ScrollArea::init()
int bggridy[4] = {0, 4, 19, 24};
int a = 0, x, y;
+ // Load GUI alpha setting
+ guiAlpha = config.getValue("guialpha", 0.8f);
+
+ // Set GUI alpha level
+ textbox->setAlpha(guiAlpha);
+
for (y = 0; y < 3; y++) {
for (x = 0; x < 3; x++) {
background.grid[a] = textbox->getSubImage(