summaryrefslogtreecommitdiff
path: root/src/gui/setup_visual.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-24 00:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-24 00:16:03 +0300
commite73f7da4d65e7dc61a952894cc6f0843c4da3170 (patch)
tree6865dfe85383992dd82e51c2a206c899746a8ad6 /src/gui/setup_visual.cpp
parentf867942810c0014a2f8cc29543163e80b5482921 (diff)
downloadmv-e73f7da4d65e7dc61a952894cc6f0843c4da3170.tar.gz
mv-e73f7da4d65e7dc61a952894cc6f0843c4da3170.tar.bz2
mv-e73f7da4d65e7dc61a952894cc6f0843c4da3170.tar.xz
mv-e73f7da4d65e7dc61a952894cc6f0843c4da3170.zip
Add particle physics settings (default value is best perfomance)
Diffstat (limited to 'src/gui/setup_visual.cpp')
-rw-r--r--src/gui/setup_visual.cpp9
1 files changed, 9 insertions, 0 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;
}