diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcontroldef.cpp | 59 |
1 files changed, 45 insertions, 14 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp index 850b5bf..cd4cf4d 100644 --- a/linden/indra/newview/llcontroldef.cpp +++ b/linden/indra/newview/llcontroldef.cpp | |||
@@ -186,7 +186,12 @@ void declare_settings() | |||
186 | gSavedSettings.declareString("FontMonospace", "profontwindows.ttf", "Name of monospace font (Truetype file name)"); | 186 | gSavedSettings.declareString("FontMonospace", "profontwindows.ttf", "Name of monospace font (Truetype file name)"); |
187 | gSavedSettings.declareString("FontSansSerif", "MtBkLfRg.ttf", "Name of san-serif font (Truetype file name)"); | 187 | gSavedSettings.declareString("FontSansSerif", "MtBkLfRg.ttf", "Name of san-serif font (Truetype file name)"); |
188 | #if LL_WINDOWS | 188 | #if LL_WINDOWS |
189 | gSavedSettings.declareString("FontSansSerifFallback", "ArialUni.ttf", "Name of fallback san-serif font (Truetype file name)"); | 189 | // Lists Japanese, Korean, and Chinese sanserif fonts available in |
190 | // Windows XP and Vista, as well as "Arial Unicode MS". | ||
191 | gSavedSettings.declareString( | ||
192 | "FontSansSerifFallback", | ||
193 | "MSGOTHIC.TTC;gulim.ttc;simhei.ttf;ArialUni.ttf", | ||
194 | "Name of fallback san-serif font (Truetype file name)"); | ||
190 | #elif LL_DARWIN | 195 | #elif LL_DARWIN |
191 | // This is a fairly complete Japanese font that ships with Mac OS X. | 196 | // This is a fairly complete Japanese font that ships with Mac OS X. |
192 | // The first filename is in UTF8, but it shows up in the font menu as "Hiragino Kaku Gothic Pro W3". | 197 | // The first filename is in UTF8, but it shows up in the font menu as "Hiragino Kaku Gothic Pro W3". |
@@ -654,7 +659,6 @@ void declare_settings() | |||
654 | gSavedSettings.declareF32( "RenderFarClip", 256.f, "Distance of far clip plane from camera (meters)" ); | 659 | gSavedSettings.declareF32( "RenderFarClip", 256.f, "Distance of far clip plane from camera (meters)" ); |
655 | gSavedSettings.declareF32( "RenderFogRatio", 2.0f, "Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance)"); | 660 | gSavedSettings.declareF32( "RenderFogRatio", 2.0f, "Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance)"); |
656 | gSavedSettings.declareBOOL("RenderAnisotropic", FALSE, "Render textures using anisotropic filtering" ); | 661 | gSavedSettings.declareBOOL("RenderAnisotropic", FALSE, "Render textures using anisotropic filtering" ); |
657 | gSavedSettings.declareBOOL("RenderLightGlows", FALSE, "Render glow sprites on top of light sources" ); | ||
658 | gSavedSettings.declareBOOL("ShowXUINames", FALSE, "Display XUI Names as Tooltips" ); | 662 | gSavedSettings.declareBOOL("ShowXUINames", FALSE, "Display XUI Names as Tooltips" ); |
659 | gSavedSettings.declareS32("RenderLightingDetail", 1, "Amount of detail for lighting objects/avatars/terrain (0=sun/moon only, 1=enable local lights)" ); | 663 | gSavedSettings.declareS32("RenderLightingDetail", 1, "Amount of detail for lighting objects/avatars/terrain (0=sun/moon only, 1=enable local lights)" ); |
660 | gSavedSettings.declareS32("RenderTerrainDetail", 2, "Detail applied to terrain texturing (0 = none, 1 or 2 = full)" ); | 664 | gSavedSettings.declareS32("RenderTerrainDetail", 2, "Detail applied to terrain texturing (0 = none, 1 or 2 = full)" ); |
@@ -664,13 +668,13 @@ void declare_settings() | |||
664 | gSavedSettings.declareF32( "RenderAvatarLODFactor", 0.5f, "Controls level of detail of avatars (multiplier for current screen area when calculated level of detail)" ); | 668 | gSavedSettings.declareF32( "RenderAvatarLODFactor", 0.5f, "Controls level of detail of avatars (multiplier for current screen area when calculated level of detail)" ); |
665 | gSavedSettings.declareF32( "RenderBumpmapMinDistanceSquared", 100.f, "Maximum distance at which to render bumpmapped primitives (distance in meters, squared)" ); | 669 | gSavedSettings.declareF32( "RenderBumpmapMinDistanceSquared", 100.f, "Maximum distance at which to render bumpmapped primitives (distance in meters, squared)" ); |
666 | gSavedSettings.declareS32( "RenderMaxPartCount", 4096, "Maximum number of particles to display on screen"); | 670 | gSavedSettings.declareS32( "RenderMaxPartCount", 4096, "Maximum number of particles to display on screen"); |
667 | gSavedSettings.declareBOOL("RenderUseAGP", TRUE, "Used AGP for fast transfer of data to graphics card" ); | 671 | gSavedSettings.declareBOOL("RenderVBOEnable", TRUE, "Use GL Vertex Buffer Objects" ); |
668 | gSavedSettings.declareBOOL("RenderUseVBO", FALSE, "Use GL Vertex Buffer Objects" ); | ||
669 | //gSavedSettings.declareBOOL("RenderUseTriStrips", FALSE, "[NOT USED]"); | 672 | //gSavedSettings.declareBOOL("RenderUseTriStrips", FALSE, "[NOT USED]"); |
670 | //gSavedSettings.declareBOOL("RenderCullBySize", FALSE, "[NOT USED]" ); | 673 | //gSavedSettings.declareBOOL("RenderCullBySize", FALSE, "[NOT USED]" ); |
671 | gSavedSettings.declareF32("RenderTerrainScale", 12.f, "Terrain detail texture scale"); | 674 | gSavedSettings.declareF32("RenderTerrainScale", 12.f, "Terrain detail texture scale"); |
672 | gSavedSettings.declareBOOL("VertexShaderEnable", FALSE, "Enable/disable all GLSL shaders (debug)"); | 675 | gSavedSettings.declareBOOL("VertexShaderEnable", FALSE, "Enable/disable all GLSL shaders (debug)"); |
673 | gSavedSettings.declareBOOL("RenderRippleWater", FALSE, "Display more realistic water, with refraction (requires pixel shader support on your video card)"); | 676 | gSavedSettings.declareBOOL("RenderRippleWater", FALSE, "Display more realistic water, with refraction (requires pixel shader support on your video card)"); |
677 | gSavedSettings.declareBOOL("RenderDynamicReflections", FALSE, "Generate a dynamic cube map for reflections (objects reflect their environment, experimental)."); | ||
674 | gSavedSettings.declareBOOL("RenderObjectBump", TRUE, "Show bumpmapping on primitives"); | 678 | gSavedSettings.declareBOOL("RenderObjectBump", TRUE, "Show bumpmapping on primitives"); |
675 | gSavedSettings.declareS32("RenderAvatarMode", 1, "Controls how avatars are rendered (0 = normal, 1 = bump mapped, 2 = bump mapped and wavy cloth)"); | 679 | gSavedSettings.declareS32("RenderAvatarMode", 1, "Controls how avatars are rendered (0 = normal, 1 = bump mapped, 2 = bump mapped and wavy cloth)"); |
676 | gSavedSettings.declareBOOL("RenderAvatarVP", TRUE, "Use vertex programs to perform hardware skinning of avatar"); | 680 | gSavedSettings.declareBOOL("RenderAvatarVP", TRUE, "Use vertex programs to perform hardware skinning of avatar"); |
@@ -683,6 +687,7 @@ void declare_settings() | |||
683 | gSavedSettings.declareBOOL("RenderUIInSnapshot", FALSE, "Display user interface in snapshot" ); | 687 | gSavedSettings.declareBOOL("RenderUIInSnapshot", FALSE, "Display user interface in snapshot" ); |
684 | gSavedSettings.declareBOOL("RenderHUDInSnapshot", FALSE, "Display HUD attachments in snapshot" ); | 688 | gSavedSettings.declareBOOL("RenderHUDInSnapshot", FALSE, "Display HUD attachments in snapshot" ); |
685 | gSavedSettings.declareBOOL("HighResSnapshot", FALSE, "Double resolution of snapshot from current window resolution" ); | 689 | gSavedSettings.declareBOOL("HighResSnapshot", FALSE, "Double resolution of snapshot from current window resolution" ); |
690 | gSavedSettings.declareBOOL("CompressSnapshotsToDisk", FALSE, "Compress snapshots saved to disk (Using JPEG 2000)" ); | ||
686 | gSavedSettings.declareBOOL("FreezeTime", FALSE, "", FALSE ); | 691 | gSavedSettings.declareBOOL("FreezeTime", FALSE, "", FALSE ); |
687 | gSavedSettings.declareBOOL("UseFreezeFrame", FALSE, "Freeze time when taking snapshots."); | 692 | gSavedSettings.declareBOOL("UseFreezeFrame", FALSE, "Freeze time when taking snapshots."); |
688 | gSavedSettings.declareBOOL("CloseSnapshotOnKeep", TRUE, "Close snapshot window after saving snapshot" ); | 693 | gSavedSettings.declareBOOL("CloseSnapshotOnKeep", TRUE, "Close snapshot window after saving snapshot" ); |
@@ -711,6 +716,10 @@ void declare_settings() | |||
711 | //gSavedSettings.declareS32("ImageRadioTexMem", 0, "Texture memory allocation (0 = <512 megabytes system RAM, 1 = >512 megabytes system RAM)"); | 716 | //gSavedSettings.declareS32("ImageRadioTexMem", 0, "Texture memory allocation (0 = <512 megabytes system RAM, 1 = >512 megabytes system RAM)"); |
712 | //gSavedSettings.declareS32("ImageRadioVidCardMem", 1, "Video card onboard memory (0 = 16MB, 1 = 32MB, 2 = 64MB, 3 = 128MB, 4 = 256MB, 5 = 512MB)"); | 717 | //gSavedSettings.declareS32("ImageRadioVidCardMem", 1, "Video card onboard memory (0 = 16MB, 1 = 32MB, 2 = 64MB, 3 = 128MB, 4 = 256MB, 5 = 512MB)"); |
713 | //gSavedSettings.declareU32("LastRAMDetected", 0, "[DO NOT MODIFY] Detected system memory (bytes)"); // used to detect RAM changes | 718 | //gSavedSettings.declareU32("LastRAMDetected", 0, "[DO NOT MODIFY] Detected system memory (bytes)"); // used to detect RAM changes |
719 | gSavedSettings.declareBOOL("ImagePipelineUseHTTP", FALSE, "If TRUE use HTTP GET to fetch textures from the server"); | ||
720 | |||
721 | // Threading | ||
722 | gSavedSettings.declareBOOL("RunMultipleThreads", FALSE, "If TRUE keep background threads active during render"); | ||
714 | 723 | ||
715 | // Camera control | 724 | // Camera control |
716 | gSavedSettings.declareBOOL("AutoPilotLocksCamera", FALSE, "Keep camera position locked when avatar walks to selected position"); | 725 | gSavedSettings.declareBOOL("AutoPilotLocksCamera", FALSE, "Keep camera position locked when avatar walks to selected position"); |
@@ -746,6 +755,9 @@ void declare_settings() | |||
746 | // Currently matches BW_PRESET_300 | 755 | // Currently matches BW_PRESET_300 |
747 | gSavedSettings.declareF32("ThrottleBandwidthKBPS", 500.f, "Maximum allowable downstream bandwidth (kilo bits per second)"); | 756 | gSavedSettings.declareF32("ThrottleBandwidthKBPS", 500.f, "Maximum allowable downstream bandwidth (kilo bits per second)"); |
748 | 757 | ||
758 | gSavedSettings.declareBOOL("ConnectionPortEnabled", FALSE, "Use the custom connection port?"); | ||
759 | gSavedSettings.declareU32("ConnectionPort", 13000, "Custom connection port number"); | ||
760 | |||
749 | // File xfer throttle | 761 | // File xfer throttle |
750 | gSavedSettings.declareF32("XferThrottle", 150000.f, "Maximum allowable downstream bandwidth for asset transfers (bits per second)"); | 762 | gSavedSettings.declareF32("XferThrottle", 150000.f, "Maximum allowable downstream bandwidth for asset transfers (bits per second)"); |
751 | 763 | ||
@@ -884,6 +896,8 @@ void declare_settings() | |||
884 | gSavedSettings.declareF32 ("GridDrawSize", 12.0f, "Visible extent of 2D snap grid (meters)"); | 896 | gSavedSettings.declareF32 ("GridDrawSize", 12.0f, "Visible extent of 2D snap grid (meters)"); |
885 | gSavedSettings.declareBOOL("GridSubUnit", FALSE, "Display fractional grid steps, relative to grid size"); | 897 | gSavedSettings.declareBOOL("GridSubUnit", FALSE, "Display fractional grid steps, relative to grid size"); |
886 | gSavedSettings.declareF32("GridOpacity", 0.7f, "Grid line opacity (0.0 = completely transparent, 1.0 = completely opaque)"); | 898 | gSavedSettings.declareF32("GridOpacity", 0.7f, "Grid line opacity (0.0 = completely transparent, 1.0 = completely opaque)"); |
899 | gSavedSettings.declareBOOL("GridCrossSections", FALSE, "Highlight cross sections of prims with grid manipulation plane."); | ||
900 | |||
887 | gSavedSettings.declareS32("GridMode", 0, "Snap grid reference frame (0 = world, 1 = local, 2 = reference object)"); | 901 | gSavedSettings.declareS32("GridMode", 0, "Snap grid reference frame (0 = world, 1 = local, 2 = reference object)"); |
888 | //gSavedSettings.declareBOOL("GridIsLocal", FALSE, "[NOT USED]"); | 902 | //gSavedSettings.declareBOOL("GridIsLocal", FALSE, "[NOT USED]"); |
889 | gSavedSettings.declareS32("GridSubdivision", 32, "Maximum number of times to divide single snap grid unit when GridSubUnit is true"); | 903 | gSavedSettings.declareS32("GridSubdivision", 32, "Maximum number of times to divide single snap grid unit when GridSubUnit is true"); |
@@ -1027,10 +1041,17 @@ void declare_settings() | |||
1027 | gSavedSettings.declareColor3("SkyNightColorShift", LLColor3(0.7f, 0.7f, 1.0f), "Controls moonlight color (base color applied to moon as light source)"); | 1041 | gSavedSettings.declareColor3("SkyNightColorShift", LLColor3(0.7f, 0.7f, 1.0f), "Controls moonlight color (base color applied to moon as light source)"); |
1028 | gSavedSettings.declareBOOL("FixedWeather", FALSE, "Weather effects do not change over time"); | 1042 | gSavedSettings.declareBOOL("FixedWeather", FALSE, "Weather effects do not change over time"); |
1029 | 1043 | ||
1030 | // VFS stuff | 1044 | // Cache Stuff |
1031 | gSavedSettings.declareU32("VFSSalt", 1, "[DO NOT MODIFY] Controls local file caching behavior"); | 1045 | gSavedSettings.declareU32("VFSSalt", 1, "[DO NOT MODIFY] Controls local file caching behavior"); |
1032 | gSavedSettings.declareU32("VFSOldSize", 2, "[DO NOT MODIFY] Controls resizing of local file cache"); | 1046 | gSavedSettings.declareU32("VFSOldSize", 0, "[DO NOT MODIFY] Controls resizing of local file cache"); |
1033 | gSavedSettings.declareU32("VFSSize", 2, "Controls amount of hard drive space reserved for local file caching (0 = 50MB, 1 = 200MB, 2 = 500MB, 3 = 1000MB)"); | 1047 | // gSavedSettings.declareU32("VFSSize", 2, "Controls amount of hard drive space reserved for local file caching (0 = 50MB, 1 = 200MB, 2 = 500MB, 3 = 1000MB)"); |
1048 | gSavedSettings.declareU32("CacheSize", 500, "Controls amount of hard drive space reserved for local file caching in MB"); | ||
1049 | gSavedSettings.declareString("CacheLocation", "", "Controls the location of the local disk cache"); | ||
1050 | gSavedSettings.declareString("NewCacheLocation", "", "Change the location of the local disk cache to this"); | ||
1051 | gSavedSettings.declareU32("CacheValidateCounter", 0, "Used to distribute cache validation"); | ||
1052 | // Delete all files in cache directory on startup | ||
1053 | gSavedSettings.declareBOOL("PurgeCacheOnStartup", FALSE, "Clear local file cache every time viewer is run"); | ||
1054 | gSavedSettings.declareBOOL("PurgeCacheOnNextStartup", FALSE, "Clear local file cache next time viewer is run"); | ||
1034 | 1055 | ||
1035 | // Used for special titles such as "Second Life - Special E3 2003 Beta" | 1056 | // Used for special titles such as "Second Life - Special E3 2003 Beta" |
1036 | gSavedSettings.declareBOOL("ShowOverlayTitle", FALSE, "Prints watermark text message on screen"); | 1057 | gSavedSettings.declareBOOL("ShowOverlayTitle", FALSE, "Prints watermark text message on screen"); |
@@ -1060,6 +1081,8 @@ void declare_settings() | |||
1060 | // The last version that was run with this prefs file. Default to a version that will never be current, | 1081 | // The last version that was run with this prefs file. Default to a version that will never be current, |
1061 | // and update after the setting is used in the startup sequence. | 1082 | // and update after the setting is used in the startup sequence. |
1062 | gSavedSettings.declareString("LastRunVersion", "0.0.0", "Version number of last instance of the viewer that you ran"); | 1083 | gSavedSettings.declareString("LastRunVersion", "0.0.0", "Version number of last instance of the viewer that you ran"); |
1084 | // Local cache version (change if format changes) | ||
1085 | gSavedSettings.declareS32("LocalCacheVersion", 0, "Version number of cache"); | ||
1063 | 1086 | ||
1064 | // cached mean collision values | 1087 | // cached mean collision values |
1065 | gSavedSettings.declareBOOL("MeanCollisionBump", FALSE, "You have experienced an abuse of being bumped by an object or avatar" ); | 1088 | gSavedSettings.declareBOOL("MeanCollisionBump", FALSE, "You have experienced an abuse of being bumped by an object or avatar" ); |
@@ -1072,7 +1095,7 @@ void declare_settings() | |||
1072 | gSavedSettings.declareBOOL("LeftClickShowMenu", FALSE, "Left click opens pie menu (FALSE = left click touches or grabs object)"); | 1095 | gSavedSettings.declareBOOL("LeftClickShowMenu", FALSE, "Left click opens pie menu (FALSE = left click touches or grabs object)"); |
1073 | 1096 | ||
1074 | gSavedSettings.declareF32("MouseSensitivity", 3.f, "Controls responsiveness of mouse when in mouselook mode (fraction or multiple of default mouse sensitivity)"); | 1097 | gSavedSettings.declareF32("MouseSensitivity", 3.f, "Controls responsiveness of mouse when in mouselook mode (fraction or multiple of default mouse sensitivity)"); |
1075 | 1098 | gSavedSettings.declareBOOL("MouseSmooth", FALSE, "Smooths out motion of mouse when in mouselook mode."); | |
1076 | gSavedSettings.declareBOOL("InvertMouse", FALSE, "When in mouselook, moving mouse up looks down and vice verse (FALSE = moving up looks up)"); | 1099 | gSavedSettings.declareBOOL("InvertMouse", FALSE, "When in mouselook, moving mouse up looks down and vice verse (FALSE = moving up looks up)"); |
1077 | 1100 | ||
1078 | gSavedSettings.declareBOOL("EditCameraMovement", FALSE, "When entering build mode, camera moves up above avatar"); | 1101 | gSavedSettings.declareBOOL("EditCameraMovement", FALSE, "When entering build mode, camera moves up above avatar"); |
@@ -1145,8 +1168,8 @@ void declare_settings() | |||
1145 | 1168 | ||
1146 | // Checkboxes in Find -> Popular | 1169 | // Checkboxes in Find -> Popular |
1147 | // Should these all be the same? I imagine we might want a single "show mature." - bbc | 1170 | // Should these all be the same? I imagine we might want a single "show mature." - bbc |
1148 | gSavedSettings.declareBOOL("ShowMatureFindAll",TRUE, "Display results of find all that are in mature sims"); | 1171 | gSavedSettings.declareBOOL("ShowMatureFindAll",FALSE, "Display results of find all that are in mature sims"); |
1149 | gSavedSettings.declareBOOL("ShowMatureSims", TRUE, "Display results of find places or find popular that are in mature sims"); | 1172 | gSavedSettings.declareBOOL("ShowMatureSims", FALSE, "Display results of find places or find popular that are in mature sims"); |
1150 | gSavedSettings.declareBOOL("ShowMatureEvents", FALSE, "Display results of find events that are flagged as mature"); | 1173 | gSavedSettings.declareBOOL("ShowMatureEvents", FALSE, "Display results of find events that are flagged as mature"); |
1151 | gSavedSettings.declareBOOL("ShowMatureClassifieds", FALSE, "Display results of find classifieds that are flagged as mature"); | 1174 | gSavedSettings.declareBOOL("ShowMatureClassifieds", FALSE, "Display results of find classifieds that are flagged as mature"); |
1152 | 1175 | ||
@@ -1185,10 +1208,6 @@ void declare_settings() | |||
1185 | gSavedSettings.declareBOOL("ShowLandHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over land"); | 1208 | gSavedSettings.declareBOOL("ShowLandHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over land"); |
1186 | gSavedSettings.declareBOOL("ShowAllObjectHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over non-interactive and interactive objects."); | 1209 | gSavedSettings.declareBOOL("ShowAllObjectHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over non-interactive and interactive objects."); |
1187 | 1210 | ||
1188 | // Delete all files in cache directory on startup | ||
1189 | gSavedSettings.declareBOOL("PurgeCacheOnStartup", FALSE, "Clear local file cache every time viewer is run"); | ||
1190 | gSavedSettings.declareBOOL("PurgeCacheOnNextStartup", FALSE, "Clear local file cache next time viewer is run"); | ||
1191 | |||
1192 | // Use an external web browser (Firefox, Internet Explorer) | 1211 | // Use an external web browser (Firefox, Internet Explorer) |
1193 | // CP: making this TRUE by default since there is no internal Web browser | 1212 | // CP: making this TRUE by default since there is no internal Web browser |
1194 | // now and other components may interrogate this setting | 1213 | // now and other components may interrogate this setting |
@@ -1223,3 +1242,15 @@ void declare_settings() | |||
1223 | gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes " | 1242 | gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes " |
1224 | "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)"); | 1243 | "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)"); |
1225 | } | 1244 | } |
1245 | |||
1246 | void settings_version_fixup() | ||
1247 | { | ||
1248 | #if LL_RELEASE_FOR_DOWNLOAD | ||
1249 | if (gCurrentVersion == "1.13.3" || gCurrentVersion == "1.13.4") | ||
1250 | { | ||
1251 | // In case these were set to true in an early 'First Look' version: | ||
1252 | gSavedSettings.setBOOL("RenderDynamicReflections", FALSE); | ||
1253 | gSavedSettings.setBOOL("ImagePipelineUseHTTP", FALSE); | ||
1254 | } | ||
1255 | #endif | ||
1256 | } | ||