diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-31 21:53:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-31 21:53:50 +0300 |
commit | 06720edd93b51a84650e2d385a24043cc4fb932e (patch) | |
tree | 002c54e58ee0cc45feca1fc00b64808b46861f35 /src/gui/widgets/tabs/setup_visual.cpp | |
parent | e8f29b1cff5360c9d16587b91d72863af4763d08 (diff) | |
download | manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.gz manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.bz2 manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.xz manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.zip |
Add strong typed bool enum mainconfig.
Diffstat (limited to 'src/gui/widgets/tabs/setup_visual.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_visual.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp index 5eb549f3a..4bcb041ca 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, true); + this, "guialphaEvent", 0.1, 1.01, 0.1, 150, true, + MainConfig_true); // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable gui opacity"), @@ -171,7 +172,7 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) : mParticleList->push_back(_("max")); (new SetupItemSlider2(_("Particle detail"), "", "particleEmitterSkip", this, "particleEmitterSkipEvent", 0, 3, 1, - mParticleList, true, true, false))->setInvertValue(3); + mParticleList, true, MainConfig_true, false))->setInvertValue(3); mParticleTypeList->fillFromArray(&particleTypeList[0], particleTypeListSize); @@ -189,7 +190,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) : // TRANSLATORS: settings option new SetupItemSlider(_("Gamma"), "", "gamma", - this, "gammeEvent", 1, 20, 1, 350, true, true); + this, "gammeEvent", 1, 20, 1, 350, true, + MainConfig_true); // TRANSLATORS: settings group |