summaryrefslogtreecommitdiff
path: root/src/gui/setup_visual.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-20 02:49:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-20 02:49:46 +0300
commite2620fcbbe0ae5ac43565879f4b7243c367c84cf (patch)
tree39acff6d0c70aebf4f6813e1c9350873b04c63ed /src/gui/setup_visual.cpp
parent0d2d350e8eb6f57be31f926897e39c6483eeee75 (diff)
downloadManaVerse-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.gz
ManaVerse-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.bz2
ManaVerse-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.xz
ManaVerse-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.zip
Move gui opacity option to visual settings page.
Add slider class for setup pages.
Diffstat (limited to 'src/gui/setup_visual.cpp')
-rw-r--r--src/gui/setup_visual.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp
index 22894e267..cc713effa 100644
--- a/src/gui/setup_visual.cpp
+++ b/src/gui/setup_visual.cpp
@@ -32,6 +32,8 @@
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/setupitem.h"
+#include "resources/image.h"
+
#include "configuration.h"
#include "localplayer.h"
#include "logger.h"
@@ -58,11 +60,15 @@ Setup_Visual::Setup_Visual()
new SetupItemCheckBox(_("Grab mouse and keyboard input"),
"", "grabinput", this, "grabinputEvent");
+ new SetupItemSlider(_("Gui opacity"), "", "guialpha",
+ this, "guialphaEvent", 0.1, 1.0);
+
setDimension(gcn::Rectangle(0, 0, 550, 350));
}
void Setup_Visual::apply()
{
SetupTabScroll::apply();
+ Image::setEnableAlpha(config.getFloatValue("guialpha") != 1.0f);
Client::applyGrabMode();
}