diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-01 13:03:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-01 13:03:27 +0300 |
commit | 1b2001d45ea6ee99490d4b1c374b1a03d73bbc86 (patch) | |
tree | 1677f727de2185b8abd56f3917f2a759d26fb3f8 /src/gui/widgets/tabs/setup_visual.cpp | |
parent | ec9116cd7f52e61afc4267b21e35325f4e7fc705 (diff) | |
download | manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.gz manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.bz2 manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.tar.xz manaplus-1b2001d45ea6ee99490d4b1c374b1a03d73bbc86.zip |
Add strong typed bool enum on the fly.
Diffstat (limited to 'src/gui/widgets/tabs/setup_visual.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_visual.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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); |