summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-25 18:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-25 18:03:20 +0300
commit314d315f8f1003073bbabec3188d7c1bdf395ea3 (patch)
tree5ace82272dec77c7cbe378aef06e38b09904ab19 /src/gui
parenta035d0001dc0cabeeda48b4cb4bcc53809c18ed8 (diff)
downloadmanaverse-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.gz
manaverse-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.bz2
manaverse-314d315f8f1003073bbabec3188d7c1bdf395ea3.tar.xz
manaverse-314d315f8f1003073bbabec3188d7c1bdf395ea3.zip
Add separate flags for enable/disable gui opacity.
It need because not always possible set opacity to exact 1.0
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/tabs/setup_visual.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp
index 3d7a94219..5eb549f3a 100644
--- a/src/gui/widgets/tabs/setup_visual.cpp
+++ b/src/gui/widgets/tabs/setup_visual.cpp
@@ -143,6 +143,10 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
new SetupItemSlider(_("Gui opacity"), "", "guialpha",
this, "guialphaEvent", 0.1, 1.01, 0.1, 150, true, true);
+ // TRANSLATORS: settings option
+ new SetupItemCheckBox(_("Enable gui opacity"),
+ "", "enableGuiOpacity", this, "enableGuiOpacityEvent");
+
mSpeachList->fillFromArray(&speachList[0], speachListSize);
// TRANSLATORS: settings option
new SetupItemDropDown(_("Overhead text"), "", "speech", this,