From b90a9fbf0d6157f5b91ae4a409e1071afbae4503 Mon Sep 17 00:00:00 2001 From: deve Date: Fri, 27 Apr 2018 06:50:39 +0200 Subject: [PATCH] Don't allow totally disable particles in GUI. Now we don't use tfb shader to compute particles, so it seems to not have a sense anymore. And it's still possible to set particles_effects=0 in config.xml if someone will need it. --- data/gui/custom_video_settings.stkgui | 2 +- src/states_screens/dialogs/custom_video_settings.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/gui/custom_video_settings.stkgui b/data/gui/custom_video_settings.stkgui index aea2de48e..c53e123e9 100644 --- a/data/gui/custom_video_settings.stkgui +++ b/data/gui/custom_video_settings.stkgui @@ -136,7 +136,7 @@
diff --git a/src/states_screens/dialogs/custom_video_settings.cpp b/src/states_screens/dialogs/custom_video_settings.cpp index d7ef9af8f..2b55b9be9 100644 --- a/src/states_screens/dialogs/custom_video_settings.cpp +++ b/src/states_screens/dialogs/custom_video_settings.cpp @@ -63,6 +63,7 @@ void CustomVideoSettingsDialog::beforeAddingWidgets() particles_effects->addLabel(_("Important only")); particles_effects->addLabel(_("Enabled")); particles_effects->setValue(UserConfigParams::m_particles_effects); + particles_effects->setMin(1); SpinnerWidget* geometry_level = getWidget("geometry_detail"); //I18N: Geometry level disabled : lowest level, no details