summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
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(