summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_visual.cpp9
-rw-r--r--src/gui/setup_visual.h4
2 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp
index 8cd052dd7..276387abb 100644
--- a/src/gui/setup_visual.cpp
+++ b/src/gui/setup_visual.cpp
@@ -86,6 +86,13 @@ Setup_Visual::Setup_Visual()
this, "particleEmitterSkipEvent", 0, 3,
mParticleList, true))->setInvertValue(3);
+ mParticleTypeList = new SetupItemNames();
+ mParticleTypeList->push_back(_("best quality"));
+ mParticleTypeList->push_back(_("normal"));
+ mParticleTypeList->push_back(_("best perfomance"));
+ new SetupItemSlider2(_("Particle physics"), "", "particleFastPhysics",
+ this, "particleFastPhysicsEvent", 0, 2, mParticleTypeList);
+
new SetupItemLabel(_("Other"), "", this);
new SetupItemSlider(_("Gamma"), "", "gamma",
@@ -114,6 +121,8 @@ Setup_Visual::~Setup_Visual()
mAmbientFxList = nullptr;
delete mParticleList;
mParticleList = nullptr;
+ delete mParticleTypeList;
+ mParticleTypeList = nullptr;
delete mVSyncList;
mVSyncList = nullptr;
}
diff --git a/src/gui/setup_visual.h b/src/gui/setup_visual.h
index 532589599..1b80f5b4b 100644
--- a/src/gui/setup_visual.h
+++ b/src/gui/setup_visual.h
@@ -38,11 +38,9 @@ class Setup_Visual : public SetupTabScroll
private:
SetupItemNames *mSpeachList;
-
SetupItemNames *mAmbientFxList;
-
SetupItemNames *mParticleList;
-
+ SetupItemNames *mParticleTypeList;
SetupItemNames *mVSyncList;
};