summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-01 13:03:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-01 13:03:27 +0300
commit1b2001d45ea6ee99490d4b1c374b1a03d73bbc86 (patch)
tree1677f727de2185b8abd56f3917f2a759d26fb3f8 /src/gui/widgets/tabs
parentec9116cd7f52e61afc4267b21e35325f4e7fc705 (diff)
downloadmanaverse-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.gz
manaverse-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.bz2
manaverse-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.xz
manaverse-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.zip
Add strong typed bool enum on the fly.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_audio.cpp9
-rw-r--r--src/gui/widgets/tabs/setup_visual.cpp12
2 files changed, 14 insertions, 7 deletions
diff --git a/src/gui/widgets/tabs/setup_audio.cpp b/src/gui/widgets/tabs/setup_audio.cpp
index 32445f1c6..0aa824813 100644
--- a/src/gui/widgets/tabs/setup_audio.cpp
+++ b/src/gui/widgets/tabs/setup_audio.cpp
@@ -73,13 +73,15 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Sfx volume"), "", "sfxVolume",
this, "sfxVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true,
+ 150,
+ OnTheFly_true,
MainConfig_true);
// TRANSLATORS: settings option
new SetupItemSlider(_("Music volume"), "", "musicVolume",
this, "musicVolumeEvent", 0, soundManager.getMaxVolume(), 1,
- 150, true,
+ 150,
+ OnTheFly_true,
MainConfig_true);
// TRANSLATORS: settings option
@@ -100,7 +102,8 @@ Setup_Audio::Setup_Audio(const Widget2 *const widget) :
mChannelsList->push_back(_("surround+center+lfe"));
// TRANSLATORS: settings option
new SetupItemSlider2(_("Audio channels"), "", "audioChannels", this,
- "audioChannels", 1, 4, 1, mChannelsList, false,
+ "audioChannels", 1, 4, 1, mChannelsList,
+ OnTheFly_false,
MainConfig_true,
false);
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp
index 4bcb041ca..f33a9a5d3 100644
--- a/src/gui/widgets/tabs/setup_visual.cpp
+++ b/src/gui/widgets/tabs/setup_visual.cpp
@@ -141,7 +141,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Gui opacity"), "", "guialpha",
- this, "guialphaEvent", 0.1, 1.01, 0.1, 150, true,
+ this, "guialphaEvent", 0.1, 1.01, 0.1, 150,
+ OnTheFly_true,
MainConfig_true);
// TRANSLATORS: settings option
@@ -171,8 +172,10 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: particle details
mParticleList->push_back(_("max"));
(new SetupItemSlider2(_("Particle detail"), "", "particleEmitterSkip",
- this, "particleEmitterSkipEvent", 0, 3, 1,
- mParticleList, true, MainConfig_true, false))->setInvertValue(3);
+ this, "particleEmitterSkipEvent", 0, 3, 1, mParticleList,
+ OnTheFly_true,
+ MainConfig_true,
+ false))->setInvertValue(3);
mParticleTypeList->fillFromArray(&particleTypeList[0],
particleTypeListSize);
@@ -190,7 +193,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemSlider(_("Gamma"), "", "gamma",
- this, "gammeEvent", 1, 20, 1, 350, true,
+ this, "gammeEvent", 1, 20, 1, 350,
+ OnTheFly_true,
MainConfig_true);