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.
This commit is contained in:
deve 2018-04-27 06:50:39 +02:00
parent bf1392cadc
commit b90a9fbf0d
2 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,7 @@
<div layout="horizontal-row" width="100%" proportion="1"> <div layout="horizontal-row" width="100%" proportion="1">
<label text="Particles Effects" I18N="Video settings" width="40%"/> <label text="Particles Effects" I18N="Video settings" width="40%"/>
<spacer width="10" height="10"/> <spacer width="10" height="10"/>
<gauge id="particles_effects" min_value="0" max_value="2" width="50%" /> <gauge id="particles_effects" min_value="1" max_value="2" width="50%" />
</div> </div>
<spacer height="4" width="10" /> <spacer height="4" width="10" />

View File

@ -63,6 +63,7 @@ void CustomVideoSettingsDialog::beforeAddingWidgets()
particles_effects->addLabel(_("Important only")); particles_effects->addLabel(_("Important only"));
particles_effects->addLabel(_("Enabled")); particles_effects->addLabel(_("Enabled"));
particles_effects->setValue(UserConfigParams::m_particles_effects); particles_effects->setValue(UserConfigParams::m_particles_effects);
particles_effects->setMin(1);
SpinnerWidget* geometry_level = getWidget<SpinnerWidget>("geometry_detail"); SpinnerWidget* geometry_level = getWidget<SpinnerWidget>("geometry_detail");
//I18N: Geometry level disabled : lowest level, no details //I18N: Geometry level disabled : lowest level, no details