diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-20 02:49:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-20 02:49:46 +0300 |
commit | e2620fcbbe0ae5ac43565879f4b7243c367c84cf (patch) | |
tree | 39acff6d0c70aebf4f6813e1c9350873b04c63ed /src/gui/setup_visual.cpp | |
parent | 0d2d350e8eb6f57be31f926897e39c6483eeee75 (diff) | |
download | manaplus-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.gz manaplus-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.bz2 manaplus-e2620fcbbe0ae5ac43565879f4b7243c367c84cf.tar.xz manaplus-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.cpp | 6 |
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(); } |