From 1b2001d45ea6ee99490d4b1c374b1a03d73bbc86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Nov 2015 13:03:27 +0300 Subject: Add strong typed bool enum on the fly. --- src/gui/widgets/tabs/setup_visual.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/tabs/setup_visual.cpp') 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); -- cgit v1.2.3-70-g09d2