summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-14 10:21:50 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-14 10:21:50 -0600
commitb4befc985875588a4b454b112b8b79a94c26e5e6 (patch)
tree05f0d7cc50934b076e37fe005533cee1abf872f7 /src/gui/setup_video.cpp
parentd51d85d49eb0429ba170c13de4ee8b4c277b7937 (diff)
downloadmana-client-b4befc985875588a4b454b112b8b79a94c26e5e6.tar.gz
mana-client-b4befc985875588a4b454b112b8b79a94c26e5e6.tar.bz2
mana-client-b4befc985875588a4b454b112b8b79a94c26e5e6.tar.xz
mana-client-b4befc985875588a4b454b112b8b79a94c26e5e6.zip
Add more detail to DebugWindow
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index f21f20e0..a4bd6864 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -146,8 +146,11 @@ static const char *speechModeToString(Being::Speech mode)
return "";
}
-static const char *overlayDetailToString(int detail)
+const char *Setup_Video::overlayDetailToString(int detail)
{
+ if (detail == -1)
+ detail = config.getValue("OverlayDetail", -1);
+
switch (detail)
{
case 0: return _("off");
@@ -157,8 +160,11 @@ static const char *overlayDetailToString(int detail)
return "";
}
-static const char *particleDetailToString(int detail)
+const char *Setup_Video::particleDetailToString(int detail)
{
+ if (detail == -1)
+ detail = 3 - config.getValue("particleEmitterSkip", -1);
+
switch (detail)
{
case 0: return _("low");