aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcontroldef.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llcontroldef.cpp
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llcontroldef.cpp')
-rw-r--r--linden/indra/newview/llcontroldef.cpp1224
1 files changed, 1224 insertions, 0 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp
new file mode 100644
index 0000000..c186f6a
--- /dev/null
+++ b/linden/indra/newview/llcontroldef.cpp
@@ -0,0 +1,1224 @@
1/**
2 * @file llcontroldef.cpp
3 * @author James Cook
4 * @brief Viewer control settings
5 *
6 * Copyright (c) 2001-2007, Linden Research, Inc.
7 *
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29// Put default viewer settings in here
30
31#include "llviewerprecompiledheaders.h"
32
33#include "llviewercontrol.h"
34
35#include "indra_constants.h"
36
37#include "v3math.h"
38#include "v3dmath.h"
39#include "llrect.h"
40#include "v4color.h"
41#include "v4coloru.h"
42#include "v3color.h"
43#include "llfirstuse.h"
44
45void declare_settings()
46{
47 // Somewhat under 1024 by 768
48 const S32 WINDOW_WIDTH = 800;
49 const S32 WINDOW_HEIGHT = 600;
50
51 //------------------------------------------------------------------------
52 // Color constants
53 //------------------------------------------------------------------------
54
55 const S32 TOOL_PANEL_HEIGHT = 162 + 32;
56 const S32 TOOL_PANEL_WIDTH = 75 + 8;
57
58 // Colors that can be changed in the UI
59 gSavedSettings.declareColor4("EffectColor", LLColor4(1.f, 1.f, 1.f, 1.f), "Particle effects color");
60 gSavedSettings.declareColor4("SystemChatColor", LLColor4(0.8f, 1.f, 1.f, 1.f), "Color of chat messages from SL System");
61 gSavedSettings.declareColor4("AgentChatColor", LLColor4(1.0f, 1.0f, 1.0f, 1.0f), "Color of chat messages from other residents");
62 gSavedSettings.declareColor4("ObjectChatColor", LLColor4(0.7f, 0.9f, 0.7f, 1.0f), "Color of chat messages from objects");
63 gSavedSettings.declareColor4("BackgroundChatColor", LLColor4(0.f, 0.f, 0.f, 1.0f), "Color of chat bubble background");
64 gSavedSettings.declareColor4("ScriptErrorColor", LLColor4(0.82f, 0.82f, 0.99f, 1.0f), "Color of script error messages");
65 gSavedSettings.declareColor4("HTMLLinkColor", LLColor4(0.6f, 0.6f, 1.0f, 1.0f), "Color of hyperlinks");
66
67 // color palette in color picker
68 gSavedSettings.declareColor4("ColorPaletteEntry01", LLColor4 ( 0.0f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry");
69 gSavedSettings.declareColor4("ColorPaletteEntry02", LLColor4 ( 0.5f, 0.5f, 0.5f, 1.0f ), "Color picker palette entry");
70 gSavedSettings.declareColor4("ColorPaletteEntry03", LLColor4 ( 0.5f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry");
71 gSavedSettings.declareColor4("ColorPaletteEntry04", LLColor4 ( 0.5f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry");
72 gSavedSettings.declareColor4("ColorPaletteEntry05", LLColor4 ( 0.0f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry");
73 gSavedSettings.declareColor4("ColorPaletteEntry06", LLColor4 ( 0.0f, 0.5f, 0.5f, 1.0f ), "Color picker palette entry");
74 gSavedSettings.declareColor4("ColorPaletteEntry07", LLColor4 ( 0.0f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry");
75 gSavedSettings.declareColor4("ColorPaletteEntry08", LLColor4 ( 0.5f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry");
76 gSavedSettings.declareColor4("ColorPaletteEntry09", LLColor4 ( 0.5f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry");
77 gSavedSettings.declareColor4("ColorPaletteEntry10", LLColor4 ( 0.0f, 0.25f, 0.25f, 1.0f ), "Color picker palette entry");
78 gSavedSettings.declareColor4("ColorPaletteEntry11", LLColor4 ( 0.0f, 0.5f, 1.0f, 1.0f ), "Color picker palette entry");
79 gSavedSettings.declareColor4("ColorPaletteEntry12", LLColor4 ( 0.0f, 0.25f, 0.5f, 1.0f ), "Color picker palette entry");
80 gSavedSettings.declareColor4("ColorPaletteEntry13", LLColor4 ( 0.5f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry");
81 gSavedSettings.declareColor4("ColorPaletteEntry14", LLColor4 ( 0.5f, 0.25f, 0.0f, 1.0f ), "Color picker palette entry");
82 gSavedSettings.declareColor4("ColorPaletteEntry15", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
83 gSavedSettings.declareColor4("ColorPaletteEntry16", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
84
85 gSavedSettings.declareColor4("ColorPaletteEntry17", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
86 gSavedSettings.declareColor4("ColorPaletteEntry18", LLColor4 ( 0.75f, 0.75f, 0.75f, 1.0f ), "Color picker palette entry");
87 gSavedSettings.declareColor4("ColorPaletteEntry19", LLColor4 ( 1.0f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry");
88 gSavedSettings.declareColor4("ColorPaletteEntry20", LLColor4 ( 1.0f, 1.0f, 0.0f, 1.0f ), "Color picker palette entry");
89 gSavedSettings.declareColor4("ColorPaletteEntry21", LLColor4 ( 0.0f, 1.0f, 0.0f, 1.0f ), "Color picker palette entry");
90 gSavedSettings.declareColor4("ColorPaletteEntry22", LLColor4 ( 0.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
91 gSavedSettings.declareColor4("ColorPaletteEntry23", LLColor4 ( 0.0f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry");
92 gSavedSettings.declareColor4("ColorPaletteEntry24", LLColor4 ( 1.0f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry");
93 gSavedSettings.declareColor4("ColorPaletteEntry25", LLColor4 ( 1.0f, 1.0f, 0.5f, 1.0f ), "Color picker palette entry");
94 gSavedSettings.declareColor4("ColorPaletteEntry26", LLColor4 ( 0.0f, 1.0f, 0.5f, 1.0f ), "Color picker palette entry");
95 gSavedSettings.declareColor4("ColorPaletteEntry27", LLColor4 ( 0.5f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
96 gSavedSettings.declareColor4("ColorPaletteEntry28", LLColor4 ( 0.5f, 0.5f, 1.0f, 1.0f ), "Color picker palette entry");
97 gSavedSettings.declareColor4("ColorPaletteEntry29", LLColor4 ( 1.0f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry");
98 gSavedSettings.declareColor4("ColorPaletteEntry30", LLColor4 ( 1.0f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry");
99 gSavedSettings.declareColor4("ColorPaletteEntry31", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
100 gSavedSettings.declareColor4("ColorPaletteEntry32", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry");
101
102 //------------------------------------------------------------------------
103 // Main menu
104 //------------------------------------------------------------------------
105 gSavedSettings.declareS32("MenuBarHeight", 18, "", NO_PERSIST );
106 gSavedSettings.declareS32("MenuBarWidth", 410, "", NO_PERSIST );
107
108 gSavedSettings.declareF32("MenuAccessKeyTime", 0.25f, "Time (seconds) in which the menu key must be tapped to move focus to the menu bar");
109 // Which background overlay to use
110 gSavedSettings.declareS32("MapOverlayIndex", 0, "Currently selected world map type");
111
112
113 //------------------------------------------------------------------------
114 // Pie Menus
115 //------------------------------------------------------------------------
116 gSavedSettings.declareF32("PieMenuLineWidth", 2.5f, "Width of lines in pie menu display (pixels)");
117
118 //------------------------------------------------------------------------
119 // Drop Shadows
120 //------------------------------------------------------------------------
121 gSavedSettings.declareS32("DropShadowButton", 2, "Drop shadow width for buttons (pixels)");
122 gSavedSettings.declareS32("DropShadowFloater", 5, "Drop shadow width for floaters (pixels)");
123 gSavedSettings.declareS32("DropShadowSlider", 3, "Drop shadow width for sliders (pixels)");
124 gSavedSettings.declareS32("DropShadowTooltip", 4, "Drop shadow width for tooltips (pixels)");
125
126 //------------------------------------------------------------------------
127 // Buttons
128 //------------------------------------------------------------------------
129 gSavedSettings.declareS32("ButtonHPad", 10, "Default horizontal spacing between buttons (pixels)"); // space from left of button to text
130 gSavedSettings.declareS32("ButtonVPad", 1, "Default vertical spacing between buttons (pixels)"); // space from bottom of button to text
131 gSavedSettings.declareS32("ButtonHeightSmall", 16, "Default height for small buttons (pixels)");
132 gSavedSettings.declareS32("ButtonHeight", 20, "Default height for normal buttons (pixels)");
133 //gSavedSettings.declareS32("ButtonHeightToolbar", 32, "[NOT USED]");
134
135 //gSavedSettings.declareS32("DefaultButtonWidth", DEFAULT_BUTTON_WIDTH, "[NOT USED]");
136 //gSavedSettings.declareS32("DefaultButtonHeight", DEFAULT_BUTTON_HEIGHT, "[NOT USED]");
137
138 //------------------------------------------------------------------------
139 // Scroll Lists
140 //------------------------------------------------------------------------
141 gSavedSettings.declareF32("TypeAheadTimeout", 1.5f, "Time delay before clearing type-ahead buffer in lists (seconds)");
142
143 //------------------------------------------------------------------------
144 // ToolTips
145 //------------------------------------------------------------------------
146 gSavedSettings.declareF32("ToolTipDelay", 0.7f, "Seconds before displaying tooltip when mouse stops over UI element");
147 gSavedSettings.declareF32("DragAndDropToolTipDelay", 0.1f, "Seconds before displaying tooltip when performing drag and drop operation");
148
149 //------------------------------------------------------------------------
150 // Auto-Open Folders
151 //------------------------------------------------------------------------
152 gSavedSettings.declareF32("FolderAutoOpenDelay", 0.75f, "Seconds before automatically expanding the folder under the mouse when performing inventory drag and drop");
153 gSavedSettings.declareF32("InventoryAutoOpenDelay", 1.f, "Seconds before automatically opening inventory when mouse is over inventory button when performing inventory drag and drop");
154 gSavedSettings.declareBOOL("ShowEmptyFoldersWhenSearching", FALSE, "Shows folders that do not have any visible contents when applying a filter to inventory");
155 gSavedSettings.declareS32("FilterItemsPerFrame", 500, "Maximum number of inventory items to match against search filter every frame (lower to increase framerate while searching, higher to improve search speed)");
156 gSavedSettings.declareBOOL("DebugInventoryFilters", FALSE, "Turn on debugging display for inventory filtering");
157
158 //------------------------------------------------------------------------
159 // Status bar
160 //------------------------------------------------------------------------
161 gSavedSettings.declareS32("StatusBarHeight", 26, "Height of menu/status bar at top of screen (pixels)" );
162 //gSavedSettings.declareS32("StatusBarButtonWidth", 80, "[NOT USED]");
163
164 gSavedSettings.declareS32("StatusBarPad", 10, "Spacing between popup buttons at bottom of screen (Stand up, Release Controls)");
165
166 //gSavedSettings.declareS32("ChatWidth", 250, "[NOT USED]");
167
168 //------------------------------------------------------------------------
169 // Toolbar bar
170 //------------------------------------------------------------------------
171 //gSavedSettings.declareS32("ToolBarHeight", 20, "[NOT USED]" );
172 //gSavedSettings.declareS32("ToolBarWidth", 480, "[NOT USED]" );
173 //gSavedSettings.declareS32("ToolBarButtonWidth", 80, "[NOT USED]" );
174
175 //------------------------------------------------------------------------
176 // Fonts
177 //------------------------------------------------------------------------
178 gSavedSettings.declareF32("FontScreenDPI", 96.f, "Font resolution, higher is bigger (pixels per inch)"); // windows standard
179 gSavedSettings.declareF32("FontSizeMonospace", 9.f, "Size of monospaced font (points, or 1/72 of an inch)");
180 gSavedSettings.declareF32("FontSizeSmall", 9.f, "Size of small font (points, or 1/72 of an inch)");
181 gSavedSettings.declareF32("FontSizeMedium", 10.f, "Size of medium font (points, or 1/72 of an inch)");
182 gSavedSettings.declareF32("FontSizeLarge", 12.f, "Size of large font (points, or 1/72 of an inch)");
183 gSavedSettings.declareF32("FontSizeHuge", 16.f, "Size of huge font (points, or 1/72 of an inch)");
184
185 gSavedSettings.declareString("FontMonospace", "profontwindows.ttf", "Name of monospace font (Truetype file name)");
186 gSavedSettings.declareString("FontSansSerif", "MtBkLfRg.ttf", "Name of san-serif font (Truetype file name)");
187#if LL_WINDOWS
188 gSavedSettings.declareString("FontSansSerifFallback", "ArialUni.ttf", "Name of fallback san-serif font (Truetype file name)");
189#elif LL_DARWIN
190 // This is a fairly complete Japanese font that ships with Mac OS X.
191 // The first filename is in UTF8, but it shows up in the font menu as "Hiragino Kaku Gothic Pro W3".
192 // The third filename is in UTF8, but it shows up in the font menu as "STHeiti Light"
193 gSavedSettings.declareString("FontSansSerifFallback", "\xE3\x83\x92\xE3\x83\xA9\xE3\x82\xAD\xE3\x82\x99\xE3\x83\x8E\xE8\xA7\x92\xE3\x82\xB3\xE3\x82\x99 Pro W3.otf;AppleGothic.dfont;\xe5\x8d\x8e\xe6\x96\x87\xe7\xbb\x86\xe9\xbb\x91.ttf", "Name of san-serif font (Truetype file name)");
194#else
195 // 'unicode.ttf' doesn't exist, but hopefully an international
196 // user can take the hint and drop in their favourite local font.
197 gSavedSettings.declareString("FontSansSerifFallback", "unicode.ttf", "Name of fallback san-serif font (Truetype file name)");
198#endif
199 gSavedSettings.declareF32("FontSansSerifFallbackScale", 1.0, "Scale of fallback font relative to huge font (fraction of huge font size)");
200 gSavedSettings.declareString("FontSansSerifBold", "MtBdLfRg.ttf", "Name of bold font (Truetype file name)");
201
202 //------------------------------------------------------------------------
203 // Chat
204 //------------------------------------------------------------------------
205
206 // 0 = small, 1 = big
207 gSavedSettings.declareS32("ChatFontSize", 1, "Size of chat text in chat console (0 = small, 1 = big)");
208
209 // Does the console occupy full window width or only left 2/3?
210 gSavedSettings.declareBOOL("ChatFullWidth", TRUE, "Chat console takes up full width of SL window");
211
212 // opacity of console background
213 gSavedSettings.declareF32("ConsoleBackgroundOpacity", 0.4f, "Opacity of chat console (0.0 = completely transparent, 1.0 = completely opaque)");
214 gSavedSettings.declareS32("ConsoleMaxLines", 40, "Max number of lines of chat text visible in console.");
215
216 // Seconds to keep line of text on console
217 gSavedSettings.declareF32("ChatPersistTime", 15.f, "Time for which chat stays visible in console (seconds)");
218 gSavedSettings.declareBOOL("PlayTypingAnim", TRUE, "Your avatar plays the typing animation whenever you type in the chat bar");
219
220 // show chat in bubbles above avatar heads
221 gSavedSettings.declareBOOL("UseChatBubbles", FALSE, "Show chat above avatars head in chat bubbles");
222 gSavedSettings.declareF32("ChatBubbleOpacity", 0.5f, "Opacity of chat bubble background (0.0 = completely transparent, 1.0 = completely opaque)");
223
224 gSavedSettings.declareBOOL("AllowAFK", TRUE, "Automatically set AFK (away from keyboard) mode when idle");
225 gSavedSettings.declareF32("AFKTimeout", 300.f, "Time before automatically setting AFK (away from keyboard) mode (seconds)"); // 5 minutes
226
227 gSavedSettings.declareBOOL("SmallAvatarNames", TRUE, "Display avatar name text in smaller font");
228 gSavedSettings.declareBOOL("ScriptErrorsAsChat", FALSE, "Display script errors and warning in chat history");
229
230 gSavedSettings.declareBOOL("ChatShowTimestamps", TRUE, "Show timestamps in chat");
231
232 //------------------------------------------------------------------------
233 // Other....
234 //------------------------------------------------------------------------
235
236 gSavedSettings.declareS32("LastFeatureVersion", 0, "[DO NOT MODIFY] Version number for tracking hardware changes", TRUE);
237 gSavedSettings.declareS32("NumSessions", 0, "Number of successful logins to Second Life");
238 gSavedSettings.declareBOOL("ShowInventory", FALSE, "Open inventory window on login");
239 gSavedSettings.declareBOOL("ChatOnlineNotification", TRUE, "Provide notifications for when friend log on and off of SL");
240
241 gSavedSettings.declareString("DefaultObjectTexture", "89556747-24cb-43ed-920b-47caed15465f", "Texture used as 'Default' in texture picker. (UUID texture reference)" ); // maple texture
242
243 gSavedSettings.declareBOOL("ShowPropertyLines", FALSE, "Show line overlay demarking property boundaries");
244 gSavedSettings.declareBOOL("ShowParcelOwners", FALSE, "", NO_PERSIST);
245 gSavedSettings.declareBOOL("ToolboxAutoMove", FALSE, "[NOT USED]");
246 gSavedSettings.declareBOOL("ToolboxShowMore", FALSE, "", NO_PERSIST);
247
248 gSavedSettings.declareRect("ToolboxRect", LLRect(0, 100, 100, 100), "Rectangle for tools window" ); // only care about position
249
250 // User interface button states
251 gSavedSettings.declareBOOL("FirstPersonBtnState", FALSE, "", NO_PERSIST);
252 gSavedSettings.declareBOOL("MouselookBtnState", FALSE, "", NO_PERSIST);
253 gSavedSettings.declareBOOL("ThirdPersonBtnState", TRUE, "", NO_PERSIST);
254 gSavedSettings.declareBOOL("BuildBtnState", FALSE, "", NO_PERSIST);
255
256 //gSavedSettings.declareBOOL("TalkBtnState", FALSE, "[NOT USED]");
257
258 gSavedSettings.declareBOOL("ShowPermissions", FALSE, "", NO_PERSIST);
259 gSavedSettings.declareBOOL("ShowTools", FALSE, "", NO_PERSIST);
260
261
262 gSavedSettings.declareString("NextLoginLocation", "", "Location to log into by default."); // if present in settings.ini, will force you to that sim/x/y/z on next login
263
264// gSavedSettings.declareBOOL("ShowBasicHelpOnLaunch", TRUE);
265 gSavedSettings.declareRect("BasicHelpRect", LLRect(0, 404, 467, 0), "Rectangle for help window" ); // Only width and height are used
266
267 gSavedSettings.declareS32("LastPrefTab", 0, "Last selected tab in preferences window");
268
269 //gSavedSettings.declareString("LSLHelpURL", "http://www.lslwiki.com/lslwiki/wakka.php?wakka=[LSL_STRING]", "URL that points to LSL help files, with [LSL_STRING] corresponding to the referenced LSL function or keyword");
270 //gSavedSettings.declareString("LSLHelpURL", "file://[APP_DIRECTORY]/lsl_guide.html#[LSL_STRING]", "URL that points to LSL help files, with [LSL_STRING] corresponding to the referenced LSL function or keyword");
271 // Wearable default images
272// const char* UI_IMG_BLACK_UUID = "e2244626-f22f-4839-8123-1e7baddeb659";
273 const char* UI_IMG_WHITE_UUID = "5748decc-f629-461c-9a36-a35a221fe21f";
274// const char* UI_IMG_DARKGRAY_UUID = "267e26d3-e0e1-41b8-91b1-3b337102928d";
275// const char* UI_IMG_LIGHTGRAY_UUID = "c520bf46-cc5d-412b-a60b-9f1bd245189f";
276
277 gSavedSettings.declareString("UIImgDefaultShirtUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
278 gSavedSettings.declareString("UIImgDefaultPantsUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
279 gSavedSettings.declareString("UIImgDefaultEyesUUID", "6522e74d-1660-4e7f-b601-6f48c1659a77", "", NO_PERSIST);
280 gSavedSettings.declareString("UIImgDefaultHairUUID", "7ca39b4c-bd19-4699-aff7-f93fd03d3e7b", "", NO_PERSIST);
281 gSavedSettings.declareString("UIImgDefaultShoesUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
282 gSavedSettings.declareString("UIImgDefaultSocksUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
283 gSavedSettings.declareString("UIImgDefaultGlovesUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
284 gSavedSettings.declareString("UIImgDefaultJacketUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
285 gSavedSettings.declareString("UIImgDefaultUnderwearUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
286 gSavedSettings.declareString("UIImgDefaultSkirtUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
287
288 // Utility color for texture defaults
289 gSavedSettings.declareString("UIImgWhiteUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST);
290
291 // Movement widget controls
292 const S32 MOVE_BTN_COL1 = 20;
293 const S32 MOVE_BTN_COL2 = MOVE_BTN_COL1 + 25;
294 const S32 MOVE_BTN_COL3 = MOVE_BTN_COL2 + 21;
295 const S32 MOVE_BTN_COL4 = MOVE_BTN_COL3 + 25;
296 const S32 MOVE_BTN_COL5 = MOVE_BTN_COL4 + 25;
297// const S32 MOVE_BTN_COL6 = MOVE_BTN_COL5 + 20;
298 const S32 MOVE_BTN_ROW1 = 4;
299 const S32 MOVE_BTN_ROW2 = MOVE_BTN_ROW1 + 25;
300 const S32 MOVE_BTN_ROW3 = MOVE_BTN_ROW2 + 25;
301 const S32 MOVE_BTN_FLY_LEFT = MOVE_BTN_COL1+96;
302 const S32 MOVE_BTN_FLY_WIDTH = 40;
303 const S32 MOVE_BTN_FLY_RIGHT = MOVE_BTN_FLY_LEFT + MOVE_BTN_FLY_WIDTH;
304
305 //gSavedSettings.declareBOOL("CreateObjectsCentered", FALSE, "[NOT USED]");
306
307 //gSavedSettings.declareBOOL("ShowMoveArrows", TRUE, "[NOT USED]");
308
309 gSavedSettings.declareRect("SlideLeftBtnRect",
310 LLRect(MOVE_BTN_COL1, MOVE_BTN_ROW3, MOVE_BTN_COL2, MOVE_BTN_ROW2),
311 "", NO_PERSIST );
312 gSavedSettings.declareRect("TurnLeftBtnRect",
313 LLRect(MOVE_BTN_COL1, MOVE_BTN_ROW2, MOVE_BTN_COL2, MOVE_BTN_ROW1),
314 "", NO_PERSIST );
315 gSavedSettings.declareRect("ForwardBtnRect",
316 LLRect(MOVE_BTN_COL2, MOVE_BTN_ROW3, MOVE_BTN_COL3, MOVE_BTN_ROW2),
317 "", NO_PERSIST );
318 gSavedSettings.declareRect("BackwardBtnRect",
319 LLRect(MOVE_BTN_COL2, MOVE_BTN_ROW2, MOVE_BTN_COL3, MOVE_BTN_ROW1),
320 "", NO_PERSIST );
321 gSavedSettings.declareRect("SlideRightBtnRect",
322 LLRect(MOVE_BTN_COL3, MOVE_BTN_ROW3, MOVE_BTN_COL4, MOVE_BTN_ROW2),
323 "", NO_PERSIST );
324 gSavedSettings.declareRect("TurnRightBtnRect",
325 LLRect(MOVE_BTN_COL3, MOVE_BTN_ROW2, MOVE_BTN_COL4, MOVE_BTN_ROW1),
326 "", NO_PERSIST );
327 gSavedSettings.declareRect("MoveUpBtnRect",
328 LLRect(MOVE_BTN_COL4, MOVE_BTN_ROW3, MOVE_BTN_COL5, MOVE_BTN_ROW2),
329 "", NO_PERSIST );
330 gSavedSettings.declareRect("MoveDownBtnRect",
331 LLRect(MOVE_BTN_COL4, MOVE_BTN_ROW2, MOVE_BTN_COL5, MOVE_BTN_ROW1),
332 "", NO_PERSIST );
333 gSavedSettings.declareBOOL("FlyBtnState", FALSE, "", NO_PERSIST);
334 gSavedSettings.declareBOOL("SitBtnState", FALSE, "", NO_PERSIST);
335 gSavedSettings.declareRect("FlyBtnRect",
336 LLRect(MOVE_BTN_FLY_LEFT, 20, MOVE_BTN_FLY_RIGHT, 4), "", NO_PERSIST );
337 gSavedSettings.declareBOOL("RunBtnState", FALSE, "", NO_PERSIST);
338 gSavedSettings.declareRect("RunBtnRect",
339 LLRect(MOVE_BTN_FLY_LEFT, 40, MOVE_BTN_FLY_RIGHT, 24), "", NO_PERSIST );
340
341 const S32 MOVE_WIDTH = MOVE_BTN_FLY_RIGHT + 4;
342 const S32 MOVE_HEIGHT = MOVE_BTN_ROW3 + 4;
343 gSavedSettings.declareRect("FloaterMoveRect", LLRect(0, MOVE_HEIGHT, MOVE_WIDTH, 0), "Rectangle for avatar control window");
344
345 // 0 = never, 1 = fade, 2 = always
346 gSavedSettings.declareS32("RenderName", 2, "Controls display of names above avatars (0 = never, 1 = fade, 2 = always)");
347 gSavedSettings.declareF32("RenderNameShowTime", 10.f, "Fade avatar names after specified time (seconds)"); // seconds
348 gSavedSettings.declareF32("RenderNameFadeDuration", 1.f, "Time interval over which to fade avatar names (seconds)"); // seconds
349 gSavedSettings.declareBOOL("RenderNameHideSelf", FALSE, "Don't display own name above avatar");
350 gSavedSettings.declareBOOL("RenderHideGroupTitle", FALSE, "Don't show group titles in name labels");
351
352 // Camera widget controls
353 const S32 CAMERA_LEFT = MOVE_BTN_FLY_RIGHT + 10;
354 const S32 CAMERA_WIDTH = 16 + 64 + 16 + 64 + 16;
355 const S32 CAMERA_HEIGHT = 64;
356 gSavedSettings.declareRect("FloaterCameraRect",
357 LLRect(CAMERA_LEFT, CAMERA_HEIGHT, CAMERA_LEFT+CAMERA_WIDTH, 0), "Rectangle for camera control window");
358
359 // Tool view
360 LLRect floater_tools_rect;
361 floater_tools_rect.setOriginAndSize(0, 300, TOOL_PANEL_WIDTH, 368);
362 //gSavedSettings.declareRect("FloaterToolsRect", floater_tools_rect, "[NOT USED]");
363 gSavedSettings.declareRect("ToolHelpRect", LLRect(8, TOOL_PANEL_HEIGHT-16, TOOL_PANEL_WIDTH -8, TOOL_PANEL_HEIGHT-16-16), "", NO_PERSIST); // relative to ToolPanelRect
364
365 gSavedSettings.declareRect("FloaterFriendsRect", LLRect(0, 400, 250, 0), "Rectangle for friends window");
366 gSavedSettings.declareRect("FloaterSnapshotRect", LLRect(0, 200, 200, 400), "Rectangle for snapshot window");
367
368 //gSavedSettings.declareRect("AccountHistoryRect", LLRect(100, 500, 500, 200), "[NOT USED]");
369
370 // Energy bar
371 //gSavedSettings.declareBOOL("ShowEnergyPanel", FALSE, "[NOT USED]");
372 gSavedSettings.declareS32("EnergyFromTop", 20, "", NO_PERSIST );
373 gSavedSettings.declareS32("EnergyWidth", 175, "", NO_PERSIST );
374 gSavedSettings.declareS32("EnergyHeight", 40, "", NO_PERSIST );
375
376 gSavedSettings.declareBOOL("UIFloaterTestBool", FALSE, "Example saved setting for the test floater");
377
378 //------------------------------------------------------------------------
379 // UI UUIDS
380 //------------------------------------------------------------------------
381 gSavedSettings.declareString("UIImgBtnCloseInactiveUUID", "779e4fa3-9b13-f74a-fba9-3886fe9c86ba", "", NO_PERSIST);
382 gSavedSettings.declareString("UIImgBtnCloseActiveUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST);
383 gSavedSettings.declareString("UIImgBtnClosePressedUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST);
384
385 gSavedSettings.declareString("UIImgBtnMinimizeInactiveUUID","6e72abba-1378-437f-bf7a-f0c15f3e99a3", "", NO_PERSIST);
386 gSavedSettings.declareString("UIImgBtnMinimizeActiveUUID", "34c9398d-bb78-4643-9633-46a2fa3e9637", "", NO_PERSIST);
387 gSavedSettings.declareString("UIImgBtnMinimizePressedUUID", "39801651-26cb-4926-af57-7af9352c273c", "", NO_PERSIST);
388
389 gSavedSettings.declareString("UIImgBtnRestoreInactiveUUID", "0eafa471-70af-4882-b8c1-40a310929744", "", NO_PERSIST);
390 gSavedSettings.declareString("UIImgBtnRestoreActiveUUID", "111b39de-8928-4690-b7b2-e17d5c960277", "", NO_PERSIST);
391 gSavedSettings.declareString("UIImgBtnRestorePressedUUID", "90a0ed5c-2e7b-4845-9958-a64a1b30f312", "", NO_PERSIST);
392
393 gSavedSettings.declareString("UIImgBtnTearOffInactiveUUID", "74e1a96f-4833-a24d-a1bb-1bce1468b0e7", "", NO_PERSIST);
394 gSavedSettings.declareString("UIImgBtnTearOffActiveUUID", "74e1a96f-4833-a24d-a1bb-1bce1468b0e7", "", NO_PERSIST);
395 gSavedSettings.declareString("UIImgBtnTearOffPressedUUID", "d2524c13-4ba6-af7c-e305-8ac6cc18d86a", "", NO_PERSIST);
396
397 // Stay in IM after hitting return.
398 gSavedSettings.declareBOOL("PinTalkViewOpen", TRUE, "Stay in IM after hitting return");
399
400 // Close chat after hitting return.
401 gSavedSettings.declareBOOL("CloseChatOnReturn", FALSE, "Close chat after hitting return");
402
403 // Copy IM messages into chat history
404 gSavedSettings.declareBOOL("IMInChatHistory", FALSE, "Copy IM into chat history");
405 gSavedSettings.declareBOOL("IMShowTimestamps", TRUE, "Show timestamps in IM");
406
407 // Has the user intentionally entered chatting mode, hence wanting the
408 // chat UI to be displayed, keyboard focus to go into chat, etc.
409 gSavedSettings.declareBOOL("ChatVisible", FALSE, "Chat bar is visible");
410
411 gSavedSettings.declareString("UIImgDirectionArrowUUID", "586383e8-4d9b-4fba-9196-2b5938e79c2c", "", NO_PERSIST);
412
413 gSavedSettings.declareString("UIImgResizeBottomRightUUID", "e3690e25-9690-4f6c-a745-e7dcd885285a", "", NO_PERSIST);
414
415 // Move buttons
416 gSavedSettings.declareString("UIImgBtnForwardOutUUID", "a0eb4021-1b20-4a53-892d-8faa9265a6f5", "", NO_PERSIST);
417 gSavedSettings.declareString("UIImgBtnForwardInUUID", "54197a61-f5d1-4c29-95d2-c071d08849cb", "", NO_PERSIST);
418 gSavedSettings.declareString("UIImgBtnSlideLeftOutUUID", "82476321-0374-4c26-9567-521535ab4cd7", "", NO_PERSIST);
419 gSavedSettings.declareString("UIImgBtnSlideLeftInUUID", "724996f5-b956-46f6-9844-4fcfce1d5e83", "", NO_PERSIST);
420 gSavedSettings.declareString("UIImgBtnLeftOutUUID", "13a93910-6b44-45eb-ad3a-4d1324c59bac", "", NO_PERSIST);
421 gSavedSettings.declareString("UIImgBtnLeftInUUID", "95463c78-aaa6-464d-892d-3a805b6bb7bf", "", NO_PERSIST);
422 gSavedSettings.declareString("UIImgBtnRightOutUUID", "5a44fd04-f52b-4c30-8b00-4a31e27614bd", "", NO_PERSIST);
423 gSavedSettings.declareString("UIImgBtnRightInUUID", "5e616d0d-4335-476f-9977-560bccd009da", "", NO_PERSIST);
424 gSavedSettings.declareString("UIImgBtnSlideRightOutUUID", "1fbe4e60-0607-44d1-a50a-032eff56ae75", "", NO_PERSIST);
425 gSavedSettings.declareString("UIImgBtnSlideRightInUUID", "7eeb57d2-3f37-454d-a729-8b217b8be443", "", NO_PERSIST);
426 gSavedSettings.declareString("UIImgBtnMoveUpInUUID", "49b4b357-e430-4b56-b9e0-05b8759c3c82", "", NO_PERSIST);
427 gSavedSettings.declareString("UIImgBtnMoveUpOutUUID", "f887146d-829f-4e39-9211-cf872b78f97c", "", NO_PERSIST);
428 gSavedSettings.declareString("UIImgBtnMoveDownInUUID", "b92a70b9-c841-4c94-b4b3-cee9eb460d48", "", NO_PERSIST);
429 gSavedSettings.declareString("UIImgBtnMoveDownOutUUID", "b5abc9fa-9e62-4e03-bc33-82c4c1b6b689", "", NO_PERSIST);
430
431// gSavedSettings.declareString("UIImgBtnPopupOutUUID", "f41ecdbf-e4b7-4eae-80fa-f0c842d85c1c");
432// gSavedSettings.declareString("UIImgBtnPopupInUUID", "432fd877-f2ad-45ce-8ae7-d1ced88462cb");
433
434 // Scrollbar
435 gSavedSettings.declareString("UIImgBtnScrollUpOutUUID", "dad084d7-9a46-452a-b0ff-4b9f1cefdde9", "", NO_PERSIST);
436 gSavedSettings.declareString("UIImgBtnScrollUpInUUID", "a93abdf3-27b5-4e22-a8fa-c48216cd2e3a", "", NO_PERSIST);
437 gSavedSettings.declareString("UIImgBtnScrollDownOutUUID", "b4ecdecf-5c8d-44e7-b882-17a77e88ed55", "", NO_PERSIST);
438 gSavedSettings.declareString("UIImgBtnScrollDownInUUID", "d2421bab-2eaf-4863-b8f6-5e4c52519247", "", NO_PERSIST);
439 gSavedSettings.declareString("UIImgBtnScrollLeftOutUUID", "43773e8d-49aa-48e0-80f3-a04715f4677a", "", NO_PERSIST);
440 gSavedSettings.declareString("UIImgBtnScrollLeftInUUID", "ea137a32-6718-4d05-9c22-7d570d27b2cd", "", NO_PERSIST);
441 gSavedSettings.declareString("UIImgBtnScrollRightOutUUID", "3d700d19-e708-465d-87f2-46c8c0ee7938", "", NO_PERSIST);
442 gSavedSettings.declareString("UIImgBtnScrollRightInUUID", "b749de64-e903-4c3c-ac0b-25fb6fa39cb5", "", NO_PERSIST);
443
444 // Spin control
445 gSavedSettings.declareString("UIImgBtnSpinUpOutUUID", "56576e6e-6710-4e66-89f9-471b59122794", "", NO_PERSIST);
446 gSavedSettings.declareString("UIImgBtnSpinUpInUUID", "c8450082-96a0-4319-8090-d3ff900b4954", "", NO_PERSIST);
447 gSavedSettings.declareString("UIImgBtnSpinDownOutUUID", "b6d240dd-5602-426f-b606-bbb49a30726d", "", NO_PERSIST);
448 gSavedSettings.declareString("UIImgBtnSpinDownInUUID", "a985ac71-052f-48e6-9c33-d931c813ac92", "", NO_PERSIST);
449
450 // Radio button control
451 gSavedSettings.declareString("UIImgRadioActiveUUID", "7a1ba9b8-1047-4d1e-9cfc-bc478c80b63f", "", NO_PERSIST);
452 gSavedSettings.declareString("UIImgRadioActiveSelectedUUID", "52f09e07-5816-4052-953c-94c6c10479b7", "", NO_PERSIST);
453 gSavedSettings.declareString("UIImgRadioInactiveUUID", "90688481-67ff-4af0-be69-4aa084bcad1e", "", NO_PERSIST);
454 gSavedSettings.declareString("UIImgRadioInactiveSelectedUUID", "1975db39-aa29-4251-aea0-409ac09d414d", "", NO_PERSIST);
455
456 // Checkbox control
457 gSavedSettings.declareString("UIImgCheckboxActiveUUID", "05bb64ee-96fd-4243-b74e-f40a41bc53ba", "", NO_PERSIST);
458 gSavedSettings.declareString("UIImgCheckboxActiveSelectedUUID", "cf4a2ed7-1533-4686-9dde-df9a37ddca55", "", NO_PERSIST);
459 gSavedSettings.declareString("UIImgCheckboxInactiveUUID", "7d94cb59-32a2-49bf-a516-9e5a2045f9d9", "", NO_PERSIST);
460 gSavedSettings.declareString("UIImgCheckboxInactiveSelectedUUID", "c817c642-9abd-4236-9287-ae0513fe7d2b", "", NO_PERSIST);
461
462 // Tab panels
463 gSavedSettings.declareString("UIImgBtnTabTopPartialOutUUID", "932ad585-0e45-4a57-aa23-4cf81beeb7b0", "", NO_PERSIST);
464 gSavedSettings.declareString("UIImgBtnTabTopPartialInUUID", "7c6c6c26-0e25-4438-89bd-30d8b8e9d704", "", NO_PERSIST);
465 gSavedSettings.declareString("UIImgBtnTabBottomPartialOutUUID", "8dca716c-b29c-403a-9886-91c028357d6e", "", NO_PERSIST);
466 gSavedSettings.declareString("UIImgBtnTabBottomPartialInUUID", "eb0b0904-8c91-4f24-b500-1180b91140de", "", NO_PERSIST);
467 gSavedSettings.declareString("UIImgBtnTabTopOutUUID", "1ed83f57-41cf-4052-a3b4-2e8bb78d8191", "", NO_PERSIST);
468 gSavedSettings.declareString("UIImgBtnTabTopInUUID", "16d032e8-817b-4368-8a4e-b7b947ae3889", "", NO_PERSIST);
469 gSavedSettings.declareString("UIImgBtnTabBottomOutUUID", "bf0a8779-689b-48c3-bb9a-6af546366ef4", "", NO_PERSIST);
470 gSavedSettings.declareString("UIImgBtnTabBottomInUUID", "c001d8fd-a869-4b6f-86a1-fdcb106df9c7", "", NO_PERSIST);
471
472 // Tools
473 // TODO: Move to gViewerArt
474 gSavedSettings.declareString("UIImgGrabUUID", "c63f124c-6340-4fbf-b59e-0869a44adb64", "", NO_PERSIST);
475 gSavedSettings.declareString("UIImgGrabSelectedUUID", "c1e21504-f136-451d-b8e9-929037812f1d", "", NO_PERSIST);
476
477 gSavedSettings.declareString("UIImgMoveUUID", "2fa5dc06-bcdd-4e09-a426-f9f262d4fa65", "", NO_PERSIST);
478 gSavedSettings.declareString("UIImgMoveSelectedUUID", "46f17c7b-8381-48c3-b628-6a406e060dd6", "", NO_PERSIST);
479
480 gSavedSettings.declareString("UIImgRotateUUID", "c34b1eaa-aae3-4351-b082-e26c0b636779", "", NO_PERSIST);
481 gSavedSettings.declareString("UIImgRotateSelectedUUID", "cdfb7fde-0d13-418a-9d89-2bd91019fc95", "", NO_PERSIST);
482
483 gSavedSettings.declareString("UIImgScaleUUID", "88a90fef-b448-4883-9344-ecf378a60433", "", NO_PERSIST);
484 gSavedSettings.declareString("UIImgScaleSelectedUUID", "55aa57ef-508a-47f7-8867-85d21c5a810d", "", NO_PERSIST);
485
486 gSavedSettings.declareString("UIImgFaceUUID", "ce15fd63-b0b6-463c-a37d-ea6393208b3e", "", NO_PERSIST);
487 gSavedSettings.declareString("UIImgFaceSelectedUUID", "b4870163-6208-42a9-9801-93133bf9a6cd", "", NO_PERSIST);
488
489 gSavedSettings.declareString("UIImgFocusUUID", "57bc39d1-288c-4519-aea6-6d1786a5c274", "", NO_PERSIST);
490 gSavedSettings.declareString("UIImgFocusSelectedUUID", "ab6a730e-ddfd-4982-9a32-c6de3de6d31d", "", NO_PERSIST);
491
492 gSavedSettings.declareString("UIImgCreateUUID", "7a0b1bdb-b5d9-4df5-bac2-ba230da93b5b", "", NO_PERSIST);
493 gSavedSettings.declareString("UIImgCreateSelectedUUID", "0098b015-3daf-4cfe-a72f-915369ea97c2", "", NO_PERSIST);
494
495 // Gun Tool texures
496 gSavedSettings.declareBOOL("ShowCrosshairs", TRUE, "Display crosshairs when in mouselook mode");
497 gSavedSettings.declareString("UIImgCrosshairsUUID", "6e1a3980-bf2d-4274-8970-91e60d85fb52", "Image to use for crosshair display (UUID texture reference)");
498
499 gSavedSettings.declareString("Language", "en-us", "Language specifier (for XUI)" );
500
501 /////////////////////////////////////////////////
502 // Other booleans
503 gSavedSettings.declareBOOL("DebugPermissions", FALSE, "Log permissions for selected inventory items");
504
505 gSavedSettings.declareBOOL("ApplyColorImmediately", TRUE, "Preview selections in color picker immediately");
506 gSavedSettings.declareBOOL("ApplyTextureImmediately", TRUE, "Preview selections in texture picker immediately");
507
508 gSavedSettings.declareBOOL("CreateToolKeepSelected", FALSE, "After using create tool, keep the create tool active");
509 gSavedSettings.declareBOOL("CreateToolCopySelection", FALSE, "", NO_PERSIST);
510 gSavedSettings.declareBOOL("CreateToolCopyCenters", TRUE, "", NO_PERSIST);
511 gSavedSettings.declareBOOL("CreateToolCopyRotates", FALSE, "", NO_PERSIST);
512
513 //gSavedSettings.declareBOOL("LogTimestamps", FALSE, "[NOT USED]");
514 //gSavedSettings.declareBOOL("AgentUpdateMouseQuery", FALSE, "[NOT USED]");
515 gSavedSettings.declareBOOL("AutoLogin", FALSE, "Login automatically using last username/password combination");
516 gSavedSettings.declareBOOL("LoginAsGod", FALSE, "Attempt to login with god powers (Linden accounts only)");
517 //gSavedSettings.declareBOOL("CameraFromPelvis", FALSE, "[NOT USED]");
518 gSavedSettings.declareBOOL("CameraOffset", FALSE, "Render with camera offset from view frustum (rendering debug)");
519 //gSavedSettings.declareBOOL("DynamicNearClip", TRUE, "[NOT USED]");
520 gSavedSettings.declareBOOL("AnimationDebug", FALSE, "Show active animations in a bubble above avatars head");
521 gSavedSettings.declareBOOL("DisplayAvatarAgentTarget", FALSE, "Show avatar positioning locators (animation debug)");
522 //gSavedSettings.declareBOOL("DisplaySkeletons", TRUE, "[NOT USED]");
523 gSavedSettings.declareBOOL("DisplayTimecode", FALSE, "Display timecode on screen");
524 //gSavedSettings.declareBOOL("Drone", FALSE, "[NOT USED]");
525 gSavedSettings.declareBOOL("DisableRendering", FALSE, "Disable GL rendering and GUI (load testing)");
526 //gSavedSettings.declareBOOL("DumpPolyMeshTable", FALSE, "[NOT USED]");
527 //gSavedSettings.declareBOOL("LimitAvatarToValidRegions", TRUE, "[NOT USED]");
528 gSavedSettings.declareBOOL("VerboseLogs", FALSE, "Display source file and line number for each log item for debugging purposes");
529 gSavedSettings.declareBOOL("FirstPersonAvatarVisible", FALSE, "Display avatar and attachments below neck while in mouselook");
530 gSavedSettings.declareBOOL("ShowNearClip", FALSE, "", NO_PERSIST);
531 gSavedSettings.declareBOOL("DebugWindowProc", FALSE, "Log windows messages");
532 gSavedSettings.declareBOOL("ShowTangentBasis", FALSE, "Render normal and binormal (debugging bump mapping)");
533 gSavedSettings.declareBOOL("AnimateTextures", TRUE, "Enable texture animation (debug)");
534
535 // Selection stuff
536 gSavedSettings.declareBOOL("LimitSelectDistance", TRUE, "Disallow selection of objects beyond max select distance");
537 gSavedSettings.declareF32( "MaxSelectDistance", 64.f, "Maximum allowed selection distance (meters from avatar)");
538 gSavedSettings.declareBOOL("LimitDragDistance", TRUE, "Limit translation of object via translate tool");
539 gSavedSettings.declareF32( "MaxDragDistance", 48.f, "Maximum allowed translation distance in a single operation of translate tool (meters from start point)");
540 gSavedSettings.declareBOOL( "SelectOwnedOnly", FALSE, "Select only objects you own" );
541 gSavedSettings.declareBOOL( "SelectMovableOnly", FALSE, "Select only objects you can move" );
542 gSavedSettings.declareBOOL( "RectangleSelectInclusive", TRUE, "Select objects that have at least one vertex inside selection rectangle" );
543 gSavedSettings.declareBOOL( "RenderHiddenSelections", TRUE, "Show selection lines on objects that are behind other objects" );
544 gSavedSettings.declareBOOL( "RenderLightRadius", FALSE, "Render the radius of selected lights" );
545
546 gSavedSettings.declareF32("SelectionHighlightThickness", 0.010f, "Thickness of selection highlight line (fraction of view distance)");
547 gSavedSettings.declareF32("SelectionHighlightUScale", 0.1f, "Scale of texture display on selection highlight line (fraction of texture size)");
548 gSavedSettings.declareF32("SelectionHighlightVScale", 1.f, "Scale of texture display on selection highlight line (fraction of texture size)");
549 gSavedSettings.declareF32("SelectionHighlightAlpha", 0.40f, "Opacity of selection highlight (0.0 = completely transparent, 1.0 = completely opaque)" );
550 gSavedSettings.declareF32("SelectionHighlightAlphaTest", 0.1f, "Alpha value below which pixels are displayed on selection highlight line (0.0 = show all pixels, 1.0 = show now pixels)");
551 gSavedSettings.declareF32("SelectionHighlightUAnim", 0.f, "Rate at which texture animates along U direction in selection highlight line (fraction of texture per second)");
552 gSavedSettings.declareF32("SelectionHighlightVAnim", 0.5f, "Rate at which texture animates along V direction in selection highlight line (fraction of texture per second)");
553
554 gSavedSettings.declareBOOL("LogMessages", FALSE, "Log network traffic");
555 gSavedSettings.declareBOOL("LoggedIn", FALSE, "Login status at end of last session");
556 gSavedSettings.declareBOOL("MouseSun", FALSE, "", NO_PERSIST);
557
558 gSavedSettings.declareBOOL("ShowAxes", FALSE, "Render coordinate frame at your position");
559
560 gSavedSettings.declareBOOL("ShowMiniMap", FALSE, "Display mini map on login");
561 gSavedSettings.declareBOOL("ShowWorldMap", FALSE, "Display world map on login");
562 gSavedSettings.declareBOOL("ShowToolBar", TRUE, "Show toolbar at bottom of screen");
563 gSavedSettings.declareBOOL("ShowCameraControls", FALSE, "Display camera controls on login");
564 gSavedSettings.declareBOOL("ShowMovementControls", FALSE, "Display movement controls on login");
565
566 gSavedSettings.declareBOOL("ShowWebBrowser", FALSE, "Show in-world web browser");
567
568 gSavedSettings.declareBOOL("ShowLeaders", FALSE, "", NO_PERSIST);
569 gSavedSettings.declareBOOL("ShowDirectory", FALSE, "", NO_PERSIST);
570 gSavedSettings.declareBOOL("ShowFriends", FALSE, "", NO_PERSIST);
571
572 gSavedSettings.declareBOOL("AutoLoadWebProfiles", FALSE, "Automatically load ALL profile webpages without asking first.");
573
574 gSavedSettings.declareBOOL("ShowIM", FALSE, "", NO_PERSIST);
575 gSavedSettings.declareBOOL("ShowChatHistory", FALSE, "", NO_PERSIST);
576
577#ifdef LL_RELEASE_FOR_DOWNLOAD
578 gSavedSettings.declareBOOL("ShowConsoleWindow", FALSE, "Show log in separate OS window");
579#else
580 gSavedSettings.declareBOOL("ShowConsoleWindow", TRUE, "Show log in separate OS window");
581#endif
582
583 // These are ignorable warnings
584
585 gSavedSettings.addWarning("AboutDirectX9");
586 gSavedSettings.addWarning("AboutBadPCI");
587 gSavedSettings.addWarning("AboutOldGraphicsDriver");
588 gSavedSettings.addWarning("AboutPCIGraphics");
589 gSavedSettings.addWarning("ReturnToOwner");
590 gSavedSettings.addWarning("QuickTimeInstalled");
591 gSavedSettings.addWarning("BrowserLaunch");
592 gSavedSettings.addWarning("DeedObject");
593 gSavedSettings.addWarning("NewClassified");
594
595 // These are warnings that appear on the first experience of that condition.
596
597 LLFirstUse::addConfigVariable("FirstBalanceIncrease");
598 LLFirstUse::addConfigVariable("FirstBalanceDecrease");
599 LLFirstUse::addConfigVariable("FirstSit");
600 LLFirstUse::addConfigVariable("FirstMap");
601 LLFirstUse::addConfigVariable("FirstGoTo");
602 LLFirstUse::addConfigVariable("FirstBuild");
603 LLFirstUse::addConfigVariable("FirstLeftClickNoHit");
604 LLFirstUse::addConfigVariable("FirstTeleport");
605 LLFirstUse::addConfigVariable("FirstOverrideKeys");
606 LLFirstUse::addConfigVariable("FirstAttach");
607 LLFirstUse::addConfigVariable("FirstAppearance");
608 LLFirstUse::addConfigVariable("FirstInventory");
609 LLFirstUse::addConfigVariable("FirstSandbox");
610 LLFirstUse::addConfigVariable("FirstFlexible");
611 LLFirstUse::addConfigVariable("FirstStreamingMusic");
612 LLFirstUse::addConfigVariable("FirstStreamingVideo");
613
614 gSavedSettings.declareBOOL("ShowDebugConsole", FALSE, "Show log in SL window");
615 gSavedSettings.declareBOOL("ShowDebugStats", FALSE, "Show performance stats display");
616 gSavedSettings.declareBOOL("OpenDebugStatBasic", TRUE, "Expand basic performance stats display");
617 gSavedSettings.declareBOOL("OpenDebugStatAdvanced", FALSE, "Expand advanced performance stats display");
618 gSavedSettings.declareBOOL("OpenDebugStatNet", TRUE, "Expand network stats display");
619 gSavedSettings.declareBOOL("OpenDebugStatRender", TRUE, "Expand render stats display");
620 gSavedSettings.declareBOOL("OpenDebugStatSim", TRUE, "Expand simulator performance stats display");
621 gSavedSettings.declareBOOL("ShowDepthBuffer", FALSE, "Show depth buffer contents");
622// gSavedSettings.declareBOOL("ShowHUD", TRUE);
623 //gSavedSettings.declareBOOL("ShowHUDText", TRUE, "[NOT USED]");
624 //gSavedSettings.declareBOOL("ShowHeadlight", FALSE, "[NOT USED]");
625 //gSavedSettings.declareBOOL("ShowLand", TRUE, "[NOT USED]");
626// gSavedSettings.declareBOOL("ShowMove", TRUE);
627 //gSavedSettings.declareBOOL("SurfaceDetail", TRUE, "[NOT USED]");
628 //gSavedSettings.declareBOOL("ShowObjectBounds", FALSE, "[NOT USED]");
629 //gSavedSettings.declareBOOL("ShowObjectEdit", FALSE, "[NOT USED]");
630 gSavedSettings.declareBOOL("ShowObjectUpdates", FALSE, "Show when update messages are received for individual objects");
631 //gSavedSettings.declareBOOL("ShowObjects", TRUE, "[NOT USED]");
632 //gSavedSettings.declareBOOL("ShowRegions", FALSE, "[NOT USED]");
633// gSavedSettings.declareBOOL("ShowTalk", TRUE);
634 //gSavedSettings.declareBOOL("ShowTimerBar", FALSE, "[NOT USED]");
635 //gSavedSettings.declareBOOL("ShowWater", FALSE, "[NOT USED]");
636 gSavedSettings.declareBOOL("SpeedTest", FALSE, "Performance testing mode, no network");
637 //gSavedSettings.declareBOOL("TempMouseLook", FALSE, "[NOT USED]");
638 gSavedSettings.declareBOOL("UseEnergy", TRUE, "", NO_PERSIST);
639// gSavedSettings.declareBOOL("UseFirstPersonDrag", FALSE);
640 //gSavedSettings.declareBOOL("UseLighting", TRUE, "[NOT USED]");
641 //gSavedSettings.declareBOOL("UseWireframe", FALSE, NO_PERSIST);
642 gSavedSettings.declareBOOL("VelocityInterpolate", TRUE, "Extrapolate object motion from last packet based on received velocity");
643 gSavedSettings.declareBOOL("PingInterpolate", FALSE, "Extrapolate object position along velocity vector based on ping delay");
644 gSavedSettings.declareBOOL("AvatarBacklight", TRUE, "Add rim lighting to avatar rendering to approximate shininess of skin");
645
646 // Startup stuff
647 gSavedSettings.declareF32("PrecachingDelay", 6.f, "Delay when logging in to load world before showing it (seconds)"); // seconds
648
649 // Rendering stuff
650 gSavedSettings.declareF32("RenderGamma", 0.f, "Sets gamma exponent for renderer");
651 gSavedSettings.declareF32( "RenderNightBrightness", 1.0f, "Brightness multiplier for moon during nighttime" );
652 gSavedSettings.declareBOOL("RenderWater", TRUE, "Display water" );
653 gSavedSettings.declareF32( "RenderFarClip", 256.f, "Distance of far clip plane from camera (meters)" );
654 gSavedSettings.declareF32( "RenderFogRatio", 2.0f, "Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance)");
655 gSavedSettings.declareBOOL("RenderAnisotropic", FALSE, "Render textures using anisotropic filtering" );
656 gSavedSettings.declareBOOL("RenderLightGlows", FALSE, "Render glow sprites on top of light sources" );
657 gSavedSettings.declareBOOL("ShowXUINames", FALSE, "Display XUI Names as Tooltips" );
658 gSavedSettings.declareS32("RenderLightingDetail", 1, "Amount of detail for lighting objects/avatars/terrain (0=sun/moon only, 1=enable local lights)" );
659 gSavedSettings.declareS32("RenderTerrainDetail", 2, "Detail applied to terrain texturing (0 = none, 1 or 2 = full)" );
660 gSavedSettings.declareF32( "RenderVolumeLODFactor", 1.f, "Controls level of detail of primitives (multiplier for current screen area when calculated level of detail)" );
661 gSavedSettings.declareF32( "RenderFlexTimeFactor", 1.f, "Controls level of detail of flexible objects (multiplier for amount of time spent processing flex objects)" );
662 gSavedSettings.declareF32( "RenderTreeLODFactor", 0.5f, "Controls level of detail of vegetatopm (multiplier for current screen area when calculated level of detail)" );
663 gSavedSettings.declareF32( "RenderAvatarLODFactor", 0.5f, "Controls level of detail of avatars (multiplier for current screen area when calculated level of detail)" );
664 gSavedSettings.declareF32( "RenderBumpmapMinDistanceSquared", 100.f, "Maximum distance at which to render bumpmapped primitives (distance in meters, squared)" );
665 gSavedSettings.declareS32( "RenderMaxPartCount", 4096, "Maximum number of particles to display on screen");
666 gSavedSettings.declareBOOL("RenderUseAGP", TRUE, "Used AGP for fast transfer of data to graphics card" );
667 gSavedSettings.declareBOOL("RenderUseVBO", FALSE, "Use GL Vertex Buffer Objects" );
668 //gSavedSettings.declareBOOL("RenderUseTriStrips", FALSE, "[NOT USED]");
669 //gSavedSettings.declareBOOL("RenderCullBySize", FALSE, "[NOT USED]" );
670 gSavedSettings.declareF32("RenderTerrainScale", 12.f, "Terrain detail texture scale");
671 gSavedSettings.declareBOOL("VertexShaderEnable", FALSE, "Enable/disable all GLSL shaders (debug)");
672 gSavedSettings.declareBOOL("RenderRippleWater", FALSE, "Display more realistic water, with refraction (requires pixel shader support on your video card)");
673 gSavedSettings.declareBOOL("RenderObjectBump", TRUE, "Show bumpmapping on primitives");
674 gSavedSettings.declareS32("RenderAvatarMode", 1, "Controls how avatars are rendered (0 = normal, 1 = bump mapped, 2 = bump mapped and wavy cloth)");
675 gSavedSettings.declareBOOL("RenderAvatarVP", TRUE, "Use vertex programs to perform hardware skinning of avatar");
676 gSavedSettings.declareS32("RenderAvatarMaxVisible", 35, "Maximum number of avatars to display at any one time");
677 //gSavedSettings.declareBOOL("RenderForceGetTexImage", FALSE, "[NOT USED]");
678 gSavedSettings.declareBOOL("RenderFastUI", FALSE, "[NOT USED]");
679 gSavedSettings.declareBOOL("RenderUseSharedDrawables", TRUE, "Collapse transforms on moving linked objects for faster updates");
680
681 // Snapshot params
682 gSavedSettings.declareBOOL("RenderUIInSnapshot", FALSE, "Display user interface in snapshot" );
683 gSavedSettings.declareBOOL("RenderHUDInSnapshot", FALSE, "Display HUD attachments in snapshot" );
684 gSavedSettings.declareBOOL("HighResSnapshot", FALSE, "Double resolution of snapshot from current window resolution" );
685 gSavedSettings.declareBOOL("FreezeTime", FALSE, "", FALSE );
686 gSavedSettings.declareBOOL("UseFreezeFrame", FALSE, "Freeze time when taking snapshots.");
687 gSavedSettings.declareBOOL("CloseSnapshotOnKeep", TRUE, "Close snapshot window after saving snapshot" );
688 gSavedSettings.declareBOOL("KeepAspectForSnapshot", FALSE, "Use full window when taking snapshot, regardless of requested image size" );
689 gSavedSettings.declareBOOL("AutoSnapshot", TRUE, "Update snapshot when camera stops moving, or any parameter changes" );
690 gSavedSettings.declareS32("LastSnapshotType", 0, "Select this as next type of snapshot to take (0 = postcard, 1 = texture, 2 = local image)" );
691 gSavedSettings.declareS32("SnapshotPostcardLastResolution", 0, "Take next postcard snapshot at this resolution" );
692 gSavedSettings.declareS32("SnapshotTextureLastResolution", 0, "Take next texture snapshot at this resolution" );
693 gSavedSettings.declareS32("SnapshotLocalLastResolution", 0, "Take next local snapshot at this resolution" );
694 gSavedSettings.declareS32("SnapshotQuality", 75, "Quality setting of postcard JPEGs (0 = worst, 100 = best)" );
695
696 gSavedSettings.declareBOOL("DisableVerticalSync", TRUE, "Update frames as fast as possible (FALSE = update frames between display scans)" );
697
698 // Statistics stuff
699 gSavedSettings.declareBOOL("StatsAutoRun", FALSE, "Play back autopilot");
700 gSavedSettings.declareS32("StatsNumRuns", -1, "Loop autopilot playback this number of times");
701 //gSavedSettings.declareBOOL("StatsContinuousLoop", FALSE, "[NOT USED]");
702 gSavedSettings.declareBOOL("StatsQuitAfterRuns", FALSE, "Quit application after this number of autopilot playback runs");
703 gSavedSettings.declareBOOL("StatsSessionTrackFrameStats", FALSE, "Track rendering and network statistics");
704 gSavedSettings.declareString("StatsPilotFile", "pilot.txt", "Filename for stats logging autopilot path");
705 gSavedSettings.declareString("StatsSummaryFile", "fss.txt", "Filename for stats logging summary");
706 gSavedSettings.declareString("StatsFile", "fs.txt", "Filename for stats logging output");
707
708 // Image pipeline stuff
709 gSavedSettings.declareS32("GraphicsCardMemorySetting", -1, "Amount of memory on your video card (-1 = autodetect, 0 = 16MB, 1 = 32MB, 2 = 64MB, 3 = 128MB, 4 = 256MB, 5 = 512MB)"); // default to auto-detect
710 //gSavedSettings.declareS32("ImageRadioTexMem", 0, "Texture memory allocation (0 = <512 megabytes system RAM, 1 = >512 megabytes system RAM)");
711 //gSavedSettings.declareS32("ImageRadioVidCardMem", 1, "Video card onboard memory (0 = 16MB, 1 = 32MB, 2 = 64MB, 3 = 128MB, 4 = 256MB, 5 = 512MB)");
712 //gSavedSettings.declareU32("LastRAMDetected", 0, "[DO NOT MODIFY] Detected system memory (bytes)"); // used to detect RAM changes
713
714 // Camera control
715 gSavedSettings.declareBOOL("AutoPilotLocksCamera", FALSE, "Keep camera position locked when avatar walks to selected position");
716 //gSavedSettings.declareBOOL("AvatarLooksAtCamera", TRUE, "[NOT USED]");
717 //gSavedSettings.declareF32("FlyHeightOffGround", 1.f, "[NOT USED]");
718 gSavedSettings.declareF32("DynamicCameraStrength", 2.f, "Amount camera lags behind avatar motion (0 = none, 30 = avatar velocity)");
719
720 gSavedSettings.declareVec3("CameraOffsetBuild", LLVector3(-6.0f, 0, 6.0f), "Default camera position relative to focus point when entering build mode");
721 gSavedSettings.declareVec3("CameraOffsetDefault", LLVector3(-3.0f, 0, 0.75f), "Default camera offset from avatar");
722 //gSavedSettings.declareVec3("CameraOffsetDefault", LLVector3(-3.0f, 0, 1.5f));
723
724 //gSavedSettings.declareVec3("FocusOffsetBuild", LLVector3(4, 0, 0), "[NOT USED]");
725 gSavedSettings.declareVec3("FocusOffsetDefault", LLVector3(1, 0, 1), "Default focus point offset relative to avatar (x-axis is forward)");
726 gSavedSettings.declareBOOL("TrackFocusObject", TRUE, "Camera tracks last object zoomed on");
727
728 gSavedSettings.declareVec3d("FocusPosOnLogout", LLVector3d(0, 0, 0), "Camera focus point when last logged out (global coordinates)");
729 gSavedSettings.declareVec3d("CameraPosOnLogout", LLVector3d(0, 0, 0), "Camera position when last logged out (global coordinates)");
730
731 // Terrain coloring
732 // JC 8/28/2002 - Adjusted to make the beta farm look good, with
733 // 20 meter water height. Talk with me before changing these.
734 gSavedSettings.declareF32("TerrainColorStartHeight", 20.f, "Starting altitude for terrain texturing (meters)"); // -1 to 1
735 gSavedSettings.declareF32("TerrainColorHeightRange", 60.f, "Altitude range over which a given terrain texture has effect (meters)"); // max land height
736
737 // Avatar stuff
738 gSavedSettings.declareF32("PitchFromMousePosition", 90.f, "Vertical range over which avatar head tracks mouse position (degrees of head rotation from top of window to bottom)");
739 gSavedSettings.declareF32("YawFromMousePosition", 90.f, "Horizontal range over which avatar head tracks mouse position (degrees of head rotation from left of window to right)");
740 gSavedSettings.declareF32("ZoomTime", 0.4f, "Time of transition between different camera modes (seconds)");
741 gSavedSettings.declareS32("AvatarCompositeLimit", 5, "Maximum number of avatars to display appearance changes on the fly");
742
743 // Default throttle
744 // These must also be changed in llviewerthrottle.h
745 // Currently matches BW_PRESET_300
746 gSavedSettings.declareF32("ThrottleBandwidthKBPS", 500.f, "Maximum allowable downstream bandwidth (kilo bits per second)");
747
748 // File xfer throttle
749 gSavedSettings.declareF32("XferThrottle", 150000.f, "Maximum allowable downstream bandwidth for asset transfers (bits per second)");
750
751 //gSavedSettings.declareS32("BWRadio", 0, "[NOT USED]");
752
753 // Avatar customizing floaters
754 gSavedSettings.declareRect("FloaterCustomizeAppearanceRect", LLRect(0, 540, 494, 0), "Rectangle for avatar customization window");
755
756 // Build options floater
757 gSavedSettings.declareRect("FloaterBuildOptionsRect", LLRect(0,0,0,0), "Rectangle for build options window.");
758
759 // Map floater
760 gSavedSettings.declareRect("FloaterMapRect", LLRect(0, 225, 200, 0), "Rectangle for world map");
761
762 gSavedSettings.declareF32("MapScale", 128.f, "World map zoom level (pixels per region)");
763
764 gSavedSettings.declareF32("MiniMapScale", 128.f, "Miniature world map zoom levle (pixels per region)");
765
766 gSavedSettings.declareBOOL("MiniMapRotate", TRUE, "Rotate miniature world map to avatar direction");
767
768 gSavedSettings.declareString("UIImgBtnPanUpOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST);
769 gSavedSettings.declareString("UIImgBtnPanUpInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST);
770 gSavedSettings.declareString("UIImgBtnPanDownOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST);
771 gSavedSettings.declareString("UIImgBtnPanDownInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST);
772 gSavedSettings.declareString("UIImgBtnPanLeftOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST);
773 gSavedSettings.declareString("UIImgBtnPanLeftInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST);
774 gSavedSettings.declareString("UIImgBtnPanRightOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST);
775 gSavedSettings.declareString("UIImgBtnPanRightInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST);
776
777 // Talk panel
778 gSavedSettings.declareRect("FloaterIMRect", LLRect(0, 10*16, 500, 0), "Rectangle for IM window");
779
780 // Chat floater
781 // Rectangle should almost fill the bottom of the screen on 800x600
782 // Note that the saved rect size is the size with history shown.
783 gSavedSettings.declareRect("FloaterChatRect", LLRect( 0, 10*16 + 12, 500, 0 ), "Rectangle for chat history");
784 gSavedSettings.declareRect("FloaterMuteRect3", LLRect( 0, 300, 300, 0), "Rectangle for mute window");
785 gSavedPerAccountSettings.declareString("BusyModeResponse", "The Resident you messaged is in 'busy mode' which means they have requested not to be disturbed. Your message will still be shown in their IM panel for later viewing.", "Auto response to instant messages while in busy mode.");
786 gSavedPerAccountSettings.declareString("InstantMessageLogPath", "", "Path to your log files.");
787 gSavedPerAccountSettings.declareBOOL("LogInstantMessages", FALSE, "Log Instant Messages");
788 gSavedPerAccountSettings.declareBOOL("LogChat", FALSE, "Log Chat");
789 gSavedPerAccountSettings.declareBOOL("LogShowHistory", FALSE, "Log Show History");
790
791 // Inventory
792 gSavedSettings.declareRect("FloaterInventoryRect", LLRect(0, 400, 300, 0), "Rectangle for inventory window" );
793
794 // properties, only width and height is used.
795 gSavedSettings.declareRect("PropertiesRect", LLRect(0, 320, 350, 0), "Rectangle for inventory item properties window");
796
797 // Previews - only width and height are used
798 gSavedSettings.declareRect("PreviewTextureRect", LLRect(0, 400, 400, 0), "Rectangle for texture preview window" ); // Only width and height are used
799 gSavedSettings.declareRect("PreviewScriptRect", LLRect(0, 550, 500, 0), "Rectangle for script preview window" ); // Only width and height are used
800 gSavedSettings.declareRect("PreviewLandmarkRect", LLRect(0, 90, 300, 0), "Rectangle for landmark preview window" ); // Only width and height are used
801 gSavedSettings.declareRect("PreviewSoundRect", LLRect(0, 85, 300, 0), "Rectangle for sound preview window" ); // Only width and height are used
802 gSavedSettings.declareRect("PreviewObjectRect", LLRect(0, 85, 300, 0), "Rectangle for object preview window" ); // Only width and height are used
803 gSavedSettings.declareRect("PreviewWearableRect", LLRect(0, 85, 300, 0), "Rectangle for wearable preview window" ); // Only width and height are used
804 gSavedSettings.declareRect("PreviewAnimRect", LLRect(0, 85, 300, 0), "Rectangle for animation preview window" ); // Only width and height are used
805 // permissions manager
806 gSavedSettings.declareRect("PermissionsManagerRect", LLRect(0, 85, 300, 0), "Rectangle for permissions manager window" ); // Only width and height are used
807
808 // Land floater - force to top left
809 //gSavedSettings.declareRect("FloaterLandRect3", LLRect(0, 370, 340, 0));
810 //gSavedSettings.declareRect("FloaterLandRect4", LLRect(0, 370, 400, 0), "Rectangle for About Land window"); // deprecated
811 gSavedSettings.declareRect("FloaterLandRect5", LLRect(0, 370, 460, 0), "Rectangle for About Land window");
812
813 // Texture Picker
814 gSavedSettings.declareRect("TexturePickerRect", LLRect(0, 290, 350, 0), "Rectangle for texture picker" ); // Only width and height are used
815 gSavedSettings.declareBOOL("TexturePickerShowFolders", TRUE, "Show folders with no texures in texture picker");
816
817 gSavedSettings.declareRect("FloaterGestureRect", LLRect(0, 480, 320, 0), "Rectangle for gestures window");
818 gSavedSettings.declareRect("FloaterClothingRect", LLRect(0, 480, 320, 0), "Rectangle for clothing window");
819 gSavedSettings.declareBOOL("ClothingBtnState", FALSE, "", NO_PERSIST);
820 gSavedSettings.declareRect("FloaterHTMLRect", LLRect(0, 500, 700, 0), "Rectangle for HTML window");
821
822 gSavedSettings.declareRect("FloaterRegionInfo", LLRect(0, 512, 480, 0), "Rectangle for region info window");
823
824 // editors
825 // Only width and height are used
826 gSavedSettings.declareRect("NotecardEditorRect", LLRect(0, 400, 400, 0), "Rectangle for notecard editor");
827
828 // recompile everything dialog
829 gSavedSettings.declareRect("CompileOutputRect", LLRect(0, 400, 300, 0), "Rectangle for script Recompile Everything output window");
830
831 // money
832 gSavedSettings.declareRect("FloaterPayRectB", LLRect(0, 150, 400, 0), "Rectangle for pay window");
833
834 // Buy
835 gSavedSettings.declareRect("FloaterBuyRect", LLRect(0, 250, 300, 0), "Rectangle for buy window");
836
837 // Buy Contents
838 gSavedSettings.declareRect("FloaterBuyContentsRect", LLRect(0, 250, 300, 0), "Rectangle for Buy Contents window");
839
840 // Open Contents
841 gSavedSettings.declareRect("FloaterOpenObjectRect", LLRect(0, 350, 300, 0), "Rectangle for Open Object window");
842
843 // the about box
844 gSavedSettings.declareRect("FloaterAboutRect", LLRect(0, 440, 470, 0), "Rectangle for About window");
845
846 // the mean box
847 gSavedSettings.declareRect("FloaterBumpRect", LLRect(0, 180, 400, 0), "Rectangle for Bumps/Hits window");
848
849 // the inspect box
850 gSavedSettings.declareRect("FloaterInspectRect", LLRect(0, 400, 400, 0), "Rectangle for Object Inspect window");
851
852 // World map. If 0,0,0,0, will attempt to size to fullscreen.
853 gSavedSettings.declareRect("FloaterWorldMapRect",
854 LLRect(0,0,0,0), "Rectangle for world map window");
855
856 // Find dialog.
857 gSavedSettings.declareRect("FloaterFindRect2", LLRect(0, 570, 780, 0), "Rectangle for Find window");
858
859 // Talk To dialog, force to top of screen
860 //gSavedSettings.declareRect("FloaterTalkToRect", LLRect(0, 130, 330, 0), "[NOT USED]");
861 // Script error/debug dialog, force to top of screen
862 gSavedSettings.declareRect("FloaterScriptDebugRect", LLRect(0, 130, 450, 0), "Rectangle for Script Error/Debug window");
863
864 // HUD Console
865 gSavedSettings.declareS32("ConsoleBufferSize", 40, "Size of chat console history (lines of chat)");
866
867 //gSavedSettings.declareString("UIImgCompassTextureUUID", "79156764-de98-4815-9d50-b10a7646bcf4", "[NOT USED]");
868
869 // Script Panel
870 //gSavedSettings.declareRect("ScriptPanelRect", LLRect(250, 175 + 400, 250 + 400, 175), "[NOT USED]");
871
872 // Radio button sets
873 gSavedSettings.declareU32("AvatarSex", 0, "", NO_PERSIST);
874
875 // Radio button sets
876 gSavedSettings.declareS32("RadioLandBrushAction", 0, "Last selected land modification operation (0 = flatten, 1 = raise, 2 = lower, 3 = smooth, 4 = roughen, 5 = revert)");
877 gSavedSettings.declareS32("RadioLandBrushSize", 0, "Size of land modification brush (0 = small, 1 = medium, 2 = large)");
878
879 // Build Options Panel
880 gSavedSettings.declareBOOL("SnapEnabled", TRUE, "Enable snapping to grid");
881 gSavedSettings.declareBOOL("SnapToMouseCursor", FALSE, "When snapping to grid, center object on nearest grid point to mouse cursor");
882 gSavedSettings.declareF32 ("GridResolution", 0.5f, "Size of single grid step (meters)");
883 gSavedSettings.declareF32 ("GridDrawSize", 12.0f, "Visible extent of 2D snap grid (meters)");
884 gSavedSettings.declareBOOL("GridSubUnit", FALSE, "Display fractional grid steps, relative to grid size");
885 gSavedSettings.declareF32("GridOpacity", 0.7f, "Grid line opacity (0.0 = completely transparent, 1.0 = completely opaque)");
886 gSavedSettings.declareS32("GridMode", 0, "Snap grid reference frame (0 = world, 1 = local, 2 = reference object)");
887 //gSavedSettings.declareBOOL("GridIsLocal", FALSE, "[NOT USED]");
888 gSavedSettings.declareS32("GridSubdivision", 32, "Maximum number of times to divide single snap grid unit when GridSubUnit is true");
889 gSavedSettings.declareF32 ("RotationStep", 1.0f, "All rotations via rotation tool are constrained to multiples of this unit (degrees)");
890
891 // Saved state for window
892 gSavedSettings.declareBOOL("WindowMaximized", TRUE, "SL viewer window maximized on login");
893 gSavedSettings.declareS32("WindowHeight", WINDOW_HEIGHT, "SL viewer window height");
894 gSavedSettings.declareS32("WindowWidth", WINDOW_WIDTH, "SL viewer window width");
895 gSavedSettings.declareS32("WindowX", 10, "X coordinate of lower left corner of SL viewer window, relative to primary display (pixels)");
896 gSavedSettings.declareS32("WindowY", 10, "Y coordinate of lower left corner of SL viewer window, relative to primary display (pixels)");
897
898 // Fullscreen menu options
899 gSavedSettings.declareBOOL("FullScreen", FALSE, "Run SL in fullscreen mode");
900//#if LL_DARWIN
901// gSavedSettings.declareBOOL("FullScreen", FALSE);
902//#else
903// gSavedSettings.declareBOOL("FullScreen", TRUE);
904//#endif
905
906 // Fullscreen actual settings
907 gSavedSettings.declareS32("FullScreenWidth", 1024, "Fullscreen resolution in width");
908 gSavedSettings.declareS32("FullScreenHeight", 768, "Fullscreen resolution in height");
909 gSavedSettings.declareF32("FullScreenAspectRatio", 1.3333f, "Aspect ratio of fullscreen display (width / height)");
910 gSavedSettings.declareBOOL("FullScreenAutoDetectAspectRatio", TRUE, "Automatically detect proper aspect ratio for fullscreen display");
911
912 // UI general settigns
913 gSavedSettings.declareBOOL("TabToTextFieldsOnly", FALSE, "TAB key takes you to next text entry field, instead of next widget");
914 gSavedSettings.declareF32("UIScaleFactor", 1.f, "Size of UI relative to default layout on 1024x768 screen");
915 gSavedSettings.declareBOOL("UIAutoScale", TRUE, "Keep UI scale consistent across different resolutions");
916
917 // Login
918 gSavedSettings.declareString("FirstName", "", "Login first name");
919 gSavedSettings.declareString("LastName", "", "Login last name");
920 gSavedPerAccountSettings.declareU32("LastLogoff", 0, "Last logoff");
921
922 // Legacy password storage. Now stored in separate file.
923 gSavedSettings.declareString("Marker", "", "[NOT USED]");
924
925 gSavedSettings.declareBOOL("RememberPassword", TRUE, "Keep password (in encrypted form) for next login");
926 gSavedSettings.declareBOOL("LoginLastLocation", TRUE, "Login at same location you last logged out");
927 gSavedSettings.declareBOOL("ShowStartLocation", FALSE, "Display starting location menu on login screen");
928 gSavedSettings.declareBOOL("FlyingAtExit", FALSE, "Was flying when last logged out, so fly when logging in");
929
930// gSavedSettings.declareString("AvatarTexture", "be20de2d-7812-4e0e-80f2-33aadf185a9f");
931 gSavedSettings.declareU32("RegionTextureSize", 256, "Terrain texture dimensions (power of 2)");
932
933 // Selection option
934 gSavedSettings.declareBOOL("SelectLinkedSet", TRUE, "", NO_PERSIST);
935
936 // Selection beam
937 gSavedSettings.declareBOOL("ShowSelectionBeam", TRUE, "Show selection particle beam when selecting or interacting with objects.");
938
939 // Scale manipulator
940 gSavedSettings.declareBOOL("ScaleUniform", FALSE, "Scale selected objects evenly about center of selection");
941 gSavedSettings.declareBOOL("ScaleShowAxes", FALSE, "Show indicator of selected scale axis when scaling");
942 gSavedSettings.declareBOOL("ScaleStretchTextures", TRUE, "Stretch textures along with object when scaling");
943
944 //------------------------------------------------------------------------
945 // Help viewer
946 //------------------------------------------------------------------------
947 gSavedSettings.declareString("HelpHomeURL", "help/index.html", "URL of initial help page");
948 gSavedSettings.declareString("HelpLastVisitedURL", "help/index.html", "URL of last help page, will be shown next time help is accessed");
949 // HTML help
950 gSavedSettings.declareString("HtmlHelpLastPage", "", "Last URL visited via help system");
951 gSavedSettings.declareRect("HtmlHelpRect", LLRect(16,650,600,128), "Rectangle for HTML help window");
952 gSavedSettings.declareRect("HtmlFindRect", LLRect(16,650,600,128), "Rectangle for HTML find window");
953
954 // Audio
955 gSavedSettings.declareF32("AudioLevelDistance", 1.0f, "Scale factor for audio engine (multiple of world scale, 2.0 = audio falls off twice as fast)");
956 gSavedSettings.declareF32("AudioLevelDoppler", 1.0f, "Scale of doppler effect on moving audio sources (1.0 = normal, <1.0 = diminished doppler effect, >1.0 = enhanced doppler effect)");
957 gSavedSettings.declareF32("AudioLevelFootsteps", 0.15f, "Relative audio level of footstep sound effects");
958 gSavedSettings.declareF32("AudioLevelMaster", 1.0f, "Master audio level, or overall volume");
959 gSavedSettings.declareF32("AudioLevelMusic", 1.0f, "Audio level of streaming music");
960 gSavedSettings.declareF32("MediaAudioVolume", 1.0f, "Audio level of Quicktime movies");
961 gSavedSettings.declareF32("AudioLevelRolloff", 1.0f, "Controls the distance-based dropoff of audio volume (fraction or multiple of default audio rolloff)");
962 gSavedSettings.declareF32("AudioLevelUI", 0.5f, "Audio level of UI sound effects");
963 //gSavedSettings.declareF32("AudioLevelWater", 0.0f, "[NOT USED]");
964 gSavedSettings.declareF32("AudioLevelWind", 0.5f, "Audio level of wind sound effect");
965
966 gSavedSettings.declareS32("AudioDefaultBitrate", 64, "Data streaming rate of uploaded audio samples (thousands of bits per second)");
967 gSavedSettings.declareBOOL("AudioStreamingMusic", FALSE, "Enable streaming audio");
968 gSavedSettings.declareBOOL("AudioStreamingVideo", FALSE, "Enable streaming video");
969
970 //UI Sounds
971
972 gSavedSettings.declareBOOL("UISndDebugSpamToggle", FALSE, "Log UI sound effects as they are played");
973
974 gSavedSettings.declareF32("UISndHealthReductionThreshold", 10.f, "Amount of health reduction required to trigger \"pain\" sound");
975 gSavedSettings.declareF32("UISndMoneyChangeThreshold", 50.f, "Amount of change in bank balance required to trigger \"money\" sound");
976
977 gSavedSettings.declareString("UISndAlert", "ed124764-705d-d497-167a-182cd9fa2e6c", "Sound file for alerts (uuid for sound asset)");
978 //gSavedSettings.declareString("UISndAppearanceAnimate", "6cf2be26-90cb-2669-a599-f5ab7698225f", "[NOT USED]");
979 gSavedSettings.declareString("UISndBadKeystroke", "2ca849ba-2885-4bc3-90ef-d4987a5b983a", "Sound file for invalid keystroke (uuid for sound asset)");
980 //gSavedSettings.declareString("UISndChatFromObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
981 gSavedSettings.declareString("UISndClick", "4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6", "Sound file for mouse click (uuid for sound asset)");
982 gSavedSettings.declareString("UISndClickRelease", "4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6", "Sound file for mouse button release (uuid for sound asset)");
983// gSavedSettings.declareString("UISndError", "cb58f920-5b52-8a49-b81c-e532adbbe6f1", "Sound file for UI error (uuid for sound asset)");
984 gSavedSettings.declareString("UISndHealthReductionF", "219c5d93-6c09-31c5-fb3f-c5fe7495c115", "Sound file for female pain (uuid for sound asset)");
985 gSavedSettings.declareString("UISndHealthReductionM", "e057c244-5768-1056-c37e-1537454eeb62", "Sound file for male pain (uuid for sound asset)");
986 //gSavedSettings.declareString("UISndIncomingChat", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
987 //gSavedSettings.declareString("UISndIncomingIM", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
988 //gSavedSettings.declareString("UISndInvApplyToObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
989 gSavedSettings.declareString("UISndInvalidOp", "4174f859-0d3d-c517-c424-72923dc21f65", "Sound file for invalid operations (uuid for sound asset)");
990 //gSavedSettings.declareString("UISndInventoryCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
991 gSavedSettings.declareString("UISndMoneyChangeDown", "104974e3-dfda-428b-99ee-b0d4e748d3a3", "Sound file for bank balance increase (uuid for sound asset)");
992 gSavedSettings.declareString("UISndMoneyChangeUp", "77a018af-098e-c037-51a6-178f05877c6f", "Sound file for bank balance decrease(uuid for sound asset)");
993 gSavedSettings.declareString("UISndNewIncomingIMSession", "67cc2844-00f3-2b3c-b991-6418d01e1bb7", "Sound file for new instant message session(uuid for sound asset)");
994 //gSavedSettings.declareString("UISndObjectCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
995 gSavedSettings.declareString("UISndObjectCreate", "f4a0660f-5446-dea2-80b7-6482a082803c", "Sound file for object creation (uuid for sound asset)");
996 gSavedSettings.declareString("UISndObjectDelete", "0cb7b00a-4c10-6948-84de-a93c09af2ba9", "Sound file for object deletion (uuid for sound asset)");
997 gSavedSettings.declareString("UISndObjectRezIn", "3c8fc726-1fd6-862d-fa01-16c5b2568db6", "Sound file for rezzing objects (uuid for sound asset)");
998 gSavedSettings.declareString("UISndObjectRezOut", "00000000-0000-0000-0000-000000000000", "Sound file for derezzing objects (uuid for sound asset)");
999 gSavedSettings.declareString("UISndPieMenuAppear", "8eaed61f-92ff-6485-de83-4dcc938a478e", "Sound file for opening pie menu (uuid for sound asset)");
1000 gSavedSettings.declareString("UISndPieMenuHide", "00000000-0000-0000-0000-000000000000", "Sound file for closing pie menu (uuid for sound asset)");
1001 gSavedSettings.declareString("UISndPieMenuSliceHighlight0", "d9f73cf8-17b4-6f7a-1565-7951226c305d", "Sound file for selecting pie menu item 0 (uuid for sound asset)");
1002 gSavedSettings.declareString("UISndPieMenuSliceHighlight1", "f6ba9816-dcaf-f755-7b67-51b31b6233e5", "Sound file for selecting pie menu item 1 (uuid for sound asset)");
1003 gSavedSettings.declareString("UISndPieMenuSliceHighlight2", "7aff2265-d05b-8b72-63c7-dbf96dc2f21f", "Sound file for selecting pie menu item 2 (uuid for sound asset)");
1004 gSavedSettings.declareString("UISndPieMenuSliceHighlight3", "09b2184e-8601-44e2-afbb-ce37434b8ba1", "Sound file for selecting pie menu item 3 (uuid for sound asset)");
1005 gSavedSettings.declareString("UISndPieMenuSliceHighlight4", "bbe4c7fc-7044-b05e-7b89-36924a67593c", "Sound file for selecting pie menu item 4 (uuid for sound asset)");
1006 gSavedSettings.declareString("UISndPieMenuSliceHighlight5", "d166039b-b4f5-c2ec-4911-c85c727b016c", "Sound file for selecting pie menu item 5 (uuid for sound asset)");
1007 gSavedSettings.declareString("UISndPieMenuSliceHighlight6", "242af82b-43c2-9a3b-e108-3b0c7e384981", "Sound file for selecting pie menu item 6 (uuid for sound asset)");
1008 gSavedSettings.declareString("UISndPieMenuSliceHighlight7", "c1f334fb-a5be-8fe7-22b3-29631c21cf0b", "Sound file for selecting pie menu item 7 (uuid for sound asset)");
1009 gSavedSettings.declareString("UISndSnapshot", "3d09f582-3851-c0e0-f5ba-277ac5c73fb4", "Sound file for taking a snapshot (uuid for sound asset)");
1010 //gSavedSettings.declareString("UISndStartAutopilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
1011 //gSavedSettings.declareString("UISndStartFollowpilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
1012 gSavedSettings.declareString("UISndStartIM", "c825dfbc-9827-7e02-6507-3713d18916c1", "Sound file for starting a new IM session (uuid for sound asset)");
1013 //gSavedSettings.declareString("UISndStopAutopilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
1014 gSavedSettings.declareString("UISndTeleportOut", "d7a9a565-a013-2a69-797d-5332baa1a947", "Sound file for teleporting (uuid for sound asset)");
1015 //gSavedSettings.declareString("UISndTextureApplyToObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
1016 //gSavedSettings.declareString("UISndTextureCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]");
1017 gSavedSettings.declareString("UISndTyping", "5e191c7b-8996-9ced-a177-b2ac32bfea06", "Sound file for starting to type a chat message (uuid for sound asset)");
1018// gSavedSettings.declareString("UISndWarning", "449bc80c-91b6-6365-8fd1-95bd91016624", "Sound file for alerts (uuid for sound asset)");
1019 gSavedSettings.declareString("UISndWindowClose", "2c346eda-b60c-ab33-1119-b8941916a499", "Sound file for closing a window (uuid for sound asset)");
1020 gSavedSettings.declareString("UISndWindowOpen", "c80260ba-41fd-8a46-768a-6bf236360e3a", "Sound file for opening a window (uuid for sound asset)");
1021
1022 // Sky params
1023 gSavedSettings.declareBOOL("SkyOverrideSimSunPosition", FALSE, "", NO_PERSIST);
1024 gSavedSettings.declareVec3("SkySunDefaultPosition", LLVector3(1.f, 0.f, 0.1f), "Default position of sun in sky (direction in world coordinates)");
1025 gSavedSettings.declareF32("SkyAmbientScale", 0.3f, "Controls strength of ambient, or non-directional light from the sun and moon (fraction or multiple of default ambient level)");
1026 gSavedSettings.declareColor3("SkyNightColorShift", LLColor3(0.7f, 0.7f, 1.0f), "Controls moonlight color (base color applied to moon as light source)");
1027 gSavedSettings.declareBOOL("FixedWeather", FALSE, "Weather effects do not change over time");
1028
1029 // VFS stuff
1030 gSavedSettings.declareU32("VFSSalt", 1, "[DO NOT MODIFY] Controls local file caching behavior");
1031 gSavedSettings.declareU32("VFSOldSize", 2, "[DO NOT MODIFY] Controls resizing of local file cache");
1032 gSavedSettings.declareU32("VFSSize", 2, "Controls amount of hard drive space reserved for local file caching (0 = 50MB, 1 = 200MB, 2 = 500MB, 3 = 1000MB)");
1033
1034 // Used for special titles such as "Second Life - Special E3 2003 Beta"
1035 gSavedSettings.declareBOOL("ShowOverlayTitle", FALSE, "Prints watermark text message on screen");
1036 gSavedSettings.declareString("OverlayTitle", "Set_via_OverlayTitle_in_settings.xml",
1037 "Controls watermark text message displayed on screen when \"ShowOverlayTitle\" is enabled (one word, underscores become spaces)"); // Must be one word, but underscores are replaced by spaces. Hah!
1038
1039 // Secret debug stuff.
1040 gSavedSettings.declareBOOL("UseDebugMenus", FALSE, "Turns on \"Debug\" menu");
1041 gSavedSettings.declareS32("ServerChoice", 0, "[DO NOT MODIFY] Controls which grid you connect to");
1042 gSavedSettings.declareString("CustomServer", "", "Specifies IP address or hostname of userserver to which you connect");
1043#ifdef LL_RELEASE_FOR_DOWNLOAD
1044 gSavedSettings.declareBOOL("UseDebugLogin", FALSE, "Provides extra control over which grid to connect to");
1045#else
1046 gSavedSettings.declareBOOL("UseDebugLogin", TRUE, "Provides extra control over which grid to connect to" );
1047#endif
1048
1049 // First run is true on the first startup of a given installation.
1050 // It is not related to whether your ACCOUNT has been logged in before.
1051 // Set to false if you reach the login screen.
1052 gSavedSettings.declareBOOL("FirstRunThisInstall", TRUE, "Specifies that you have not run the viewer since you installed the latest update");
1053
1054 // Is this the first successful login for a given installation?
1055 // It is not related to whether your ACCOUNT has been logged in before.
1056 // Set to false if you successfully connect.
1057 gSavedSettings.declareBOOL("FirstLoginThisInstall", TRUE, "Specifies that you have not successfully logged in since you installed the latest update");
1058
1059 // The last version that was run with this prefs file. Default to a version that will never be current,
1060 // and update after the setting is used in the startup sequence.
1061 gSavedSettings.declareString("LastRunVersion", "0.0.0", "Version number of last instance of the viewer that you ran");
1062
1063 // cached mean collision values
1064 gSavedSettings.declareBOOL("MeanCollisionBump", FALSE, "You have experienced an abuse of being bumped by an object or avatar" );
1065 gSavedSettings.declareBOOL("MeanCollisionPushObject", FALSE, "You have experienced an abuse of being pushed by a scripted object");
1066 gSavedSettings.declareBOOL("MeanCollisionSelected", FALSE, "You have experienced an abuse of being pushed via a selected object");
1067 gSavedSettings.declareBOOL("MeanCollisionScripted", FALSE, "You have experienced an abuse from a scripted object");
1068 gSavedSettings.declareBOOL("MeanCollisionPhysical", FALSE, "You have experienced an abuse from a physical object");
1069
1070 // Does left-click show menu, or only do grabbing?
1071 gSavedSettings.declareBOOL("LeftClickShowMenu", FALSE, "Left click opens pie menu (FALSE = left click touches or grabs object)");
1072
1073 gSavedSettings.declareF32("MouseSensitivity", 3.f, "Controls responsiveness of mouse when in mouselook mode (fraction or multiple of default mouse sensitivity)");
1074
1075 gSavedSettings.declareBOOL("InvertMouse", FALSE, "When in mouselook, moving mouse up looks down and vice verse (FALSE = moving up looks up)");
1076
1077 gSavedSettings.declareBOOL("EditCameraMovement", FALSE, "When entering build mode, camera moves up above avatar");
1078 gSavedSettings.declareBOOL("AppearanceCameraMovement", TRUE, "When entering appearance editing mode, camera zooms in on currently selected portion of avatar");
1079
1080 gSavedSettings.declareBOOL("AltShowsPhysical", FALSE, "When ALT key is held down, physical objects are rendered in red.");
1081
1082 gSavedSettings.declareBOOL("MuteAudio", FALSE, "All audio plays at 0 volume (streaming audio still takes up bandwidth, for example)");
1083 gSavedSettings.declareBOOL("MuteWhenMinimized", TRUE, "Mute audio when SL window is minimized");
1084
1085 gSavedSettings.declareS32("NotifyBoxWidth", 350, "Width of notification messages");
1086 gSavedSettings.declareS32("NotifyBoxHeight", 200, "Height of notification messages");
1087
1088 gSavedSettings.declareS32("GroupNotifyBoxWidth", 400, "Width of group notice messages");
1089 gSavedSettings.declareS32("GroupNotifyBoxHeight", 260, "Height of group notice messages");
1090
1091 // Time in seconds.
1092 gSavedSettings.declareF32("NotifyTipDuration", 4.f, "Length of time that notification tips stay on screen (seconds)");
1093
1094
1095 gSavedSettings.declareBOOL("NotifyMoneyChange", TRUE, "Pop up notifications for all financial transactions");
1096
1097 // Bitfield
1098 // 1 = by date
1099 // 2 = folders always by name
1100 // This where the default first time user gets his settings.
1101 gSavedSettings.declareU32("InventorySortOrder", 1 | 2, "Specifies sort key for inventory items (+0 = name, +1 = date, +2 = folders always by name)");
1102 gSavedSettings.declareU32("RecentItemsSortOrder", 1, "Specifies sort key for recent inventory items (+0 = name, +1 = date, +2 = folders always by name)");
1103 gSavedSettings.declareU32("TexturePickerSortOrder", 2, "Specifies sort key for textures in texture picker (+0 = name, +1 = date, +2 = folders always by name)");
1104 gSavedSettings.declareU32("AvatarPickerSortOrder", 2, "Specifies sort key for textures in avatar picker (+0 = name, +1 = date, +2 = folders always by name)");
1105
1106 // Pixels away from edge that windows snap.
1107 gSavedSettings.declareS32("SnapMargin", 10, "Controls maximum distance between windows before they auto-snap together (pixels)");
1108
1109 // Will be set on first run
1110 gSavedSettings.declareS32("FloaterViewBottom", -1, "[DO NOT MODIFY] Controls layout of floating windows within SL window");
1111
1112 // Automatically fly when up key held down, and automatically stop
1113 // flying when landing on something.
1114 gSavedSettings.declareBOOL("AutomaticFly", TRUE, "Fly by holding jump key or using \"Fly\" command (FALSE = fly by using \"Fly\" command only)");
1115
1116 // Index of the last find panel you opened.
1117 gSavedSettings.declareString("LastFindPanel", "all_panel", "Controls which find operation appears by default when clicking \"Find\" button ");
1118
1119 // grab keystrokes at last possible moment to minimize latency
1120 gSavedSettings.declareBOOL("AsyncKeyboard", TRUE, "Improves responsiveness to keyboard input when at low framerates");
1121
1122 // Numpad numbers move avatar even when numlock is off/you're using a Mac?
1123 gSavedSettings.declareS32("NumpadControl", 0, "How numpad keys control your avatar. 0 = Like the normal arrow keys, 1 = Numpad moves avatar when numlock is off, 2 = Numpad moves avatar regardless of numlock (use this if you have no numlock)");
1124
1125 // 1.2.9: For transition from 1.2.8 to 1.2.9, need to ask people
1126 // this question regardless of number of executions.
1127 // 1.6.10: We're just defaulting crash reporting to on
1128 // 1.7.x: We ask at crash time, but leave this so when you flip back and
1129 // forth between 1.6 and 1.7 it doesn't ask you every time.
1130 gSavedSettings.declareBOOL("AskedAboutCrashReports", FALSE, "Turns off dialog asking if you want to enable crash reporting");
1131
1132 // Default for the "Online" checkbox in Find -> People
1133 gSavedSettings.declareBOOL("FindPeopleOnline", TRUE, "Limits people search to only users who are logged on");
1134
1135 // Default for checkboxes in Find -> Land
1136 //gSavedSettings.declareBOOL("FindLandForSale", TRUE);
1137 //gSavedSettings.declareBOOL("FindLandAuction", TRUE);
1138
1139 // Default for Find -> Land combo box
1140 gSavedSettings.declareString("FindLandType", "All", "Controls which type of land you are searching for in Find Land interface (\"All\", \"Auction\", \"For Sale\", \"First Land\")");
1141
1142 gSavedSettings.declareBOOL("FindLandPrice", TRUE, "Enables filtering of land search results by price");
1143 gSavedSettings.declareBOOL("FindLandArea", FALSE, "Enables filtering of land search results by area");
1144
1145 // Checkboxes in Find -> Popular
1146 // Should these all be the same? I imagine we might want a single "show mature." - bbc
1147 gSavedSettings.declareBOOL("ShowMatureFindAll",TRUE, "Display results of find all that are in mature sims");
1148 gSavedSettings.declareBOOL("ShowMatureSims", TRUE, "Display results of find places or find popular that are in mature sims");
1149 gSavedSettings.declareBOOL("ShowMatureEvents", FALSE, "Display results of find events that are flagged as mature");
1150 gSavedSettings.declareBOOL("ShowMatureClassifieds", FALSE, "Display results of find classifieds that are flagged as mature");
1151
1152 gSavedSettings.declareBOOL("FindPlacesPictures", TRUE, "Display only results of find places that have pictures");
1153
1154 gSavedSettings.declareBOOL("MapShowEvents", TRUE, "Show events on world map");
1155 //gSavedSettings.declareBOOL("MapShowPicks", TRUE, "[NOT USED]");
1156 gSavedSettings.declareBOOL("MapShowPopular", TRUE, "Show popular places on world map");
1157 gSavedSettings.declareBOOL("MapShowLandForSale", FALSE, "Show land for sale on world map");
1158 gSavedSettings.declareBOOL("MapShowTelehubs", TRUE, "Show telehubs on world map");
1159 gSavedSettings.declareBOOL("MapShowPeople", TRUE, "Show other users on world map");
1160 gSavedSettings.declareBOOL("MapShowInfohubs", TRUE, "Show infohubs on the world map");
1161 gSavedSettings.declareBOOL("MapShowClassifieds", TRUE, "Show locations associated with classified ads on world map");
1162
1163 // Arrow keys move avatar while in chat?
1164 gSavedSettings.declareBOOL("ArrowKeysMoveAvatar", TRUE, "While cursor is in chat entry box, arrow keys still control your avatar");
1165 gSavedSettings.declareBOOL("ChatBarStealsFocus", TRUE, "Whenever keyboard focus is removed from the UI, and the chat bar is visible, the chat bar takes focus");
1166
1167 // Show yellow selection fence in snapshots for auctions?
1168 gSavedSettings.declareBOOL("AuctionShowFence", TRUE, "When auctioning land, include parcel boundary marker in snapshot");
1169
1170 // Use DX9 to probe hardware on startup. Only do this once,
1171 // because it's slow.
1172 gSavedSettings.declareBOOL("ProbeHardwareOnStartup", TRUE, "Query current hardware configuration on application startup");
1173
1174 // enable/disable system color picker
1175 gSavedSettings.declareBOOL("UseDefaultColorPicker", FALSE, "Use color picker supplied by operating system");
1176 gSavedSettings.declareF32("PickerContextOpacity", 0.35f, "Controls overall opacity of context frustrum connecting color and texture pickers with their swatches");
1177
1178 // support for avatar exporter
1179 //gSavedSettings.declareString("AvExportPath", "", "[NOT USED]");
1180 //gSavedSettings.declareString("AvExportBaseName", "", "[NOT USED]");
1181
1182 // Show in-world hover tips for objects
1183 gSavedSettings.declareBOOL("ShowHoverTips", TRUE, "Show descriptive tooltip when mouse hovers over items in world");
1184 gSavedSettings.declareBOOL("ShowLandHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over land");
1185 gSavedSettings.declareBOOL("ShowAllObjectHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over non-interactive and interactive objects.");
1186
1187 // Delete all files in cache directory on startup
1188 gSavedSettings.declareBOOL("PurgeCacheOnStartup", FALSE, "Clear local file cache every time viewer is run");
1189 gSavedSettings.declareBOOL("PurgeCacheOnNextStartup", FALSE, "Clear local file cache next time viewer is run");
1190
1191 // Use an external web browser (Firefox, Internet Explorer)
1192 // CP: making this TRUE by default since there is no internal Web browser
1193 // now and other components may interrogate this setting
1194 gSavedSettings.declareBOOL("UseExternalBrowser", TRUE, "[NOT USED]");
1195
1196 // browser home page
1197 gSavedSettings.declareString("BrowserHomePage", "http://www.secondlife.com", "[NOT USED]");
1198
1199 // browser proxy variables
1200 gSavedSettings.declareBOOL("BrowserProxyEnabled", FALSE, "[NOT USED]");
1201 gSavedSettings.declareString("BrowserProxyAddress", "", "[NOT USED]");
1202 gSavedSettings.declareS32("BrowserProxyPort", 3128, "[NOT USED]");
1203 gSavedSettings.declareS32("BrowserProxySocks45", 5, "[NOT USED]");
1204 gSavedSettings.declareString("BrowserProxyExclusions", "", "[NOT USED]");
1205
1206 // Allow user to completely disable web pages on prims
1207 gSavedSettings.declareBOOL("UseWebPagesOnPrims", FALSE, "[NOT USED]");
1208
1209 // use object-object occlusion culling
1210 gSavedSettings.declareBOOL("UseOcclusion", TRUE, "Enable object culling based on occlusion (coverage) by other objects");
1211
1212 gSavedSettings.declareBOOL("DoubleClickAutoPilot", FALSE, "Enable double-click auto pilot");
1213
1214 //cheesy beacon effects
1215 gSavedSettings.declareBOOL("CheesyBeacon", FALSE, "Enable cheesy beacon effects");
1216
1217 //
1218 // crash_settings.xml
1219 //
1220
1221 // Setting name is shared with win_crash_logger
1222 gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes "
1223 "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)");
1224}