diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcontroldef.cpp | 2159 |
1 files changed, 0 insertions, 2159 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp deleted file mode 100644 index 7534fd5..0000000 --- a/linden/indra/newview/llcontroldef.cpp +++ /dev/null | |||
@@ -1,2159 +0,0 @@ | |||
1 | /** | ||
2 | * @file llcontroldef.cpp | ||
3 | * @author James Cook | ||
4 | * @brief Viewer control settings | ||
5 | * | ||
6 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
7 | * | ||
8 | * Copyright (c) 2001-2008, Linden Research, Inc. | ||
9 | * | ||
10 | * Second Life Viewer Source Code | ||
11 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
12 | * to you under the terms of the GNU General Public License, version 2.0 | ||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
17 | * | ||
18 | * There are special exceptions to the terms and conditions of the GPL as | ||
19 | * it is applied to this Source Code. View the full text of the exception | ||
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | // Put default viewer settings in here | ||
34 | |||
35 | #include "llviewerprecompiledheaders.h" | ||
36 | |||
37 | #include "llviewercontrol.h" | ||
38 | |||
39 | #include "indra_constants.h" | ||
40 | |||
41 | #include "v3math.h" | ||
42 | #include "v3dmath.h" | ||
43 | #include "llrect.h" | ||
44 | #include "v4color.h" | ||
45 | #include "v4coloru.h" | ||
46 | #include "v3color.h" | ||
47 | #include "llfirstuse.h" | ||
48 | |||
49 | // For Listeners | ||
50 | #include "audioengine.h" | ||
51 | #include "llagent.h" | ||
52 | #include "llconsole.h" | ||
53 | #include "lldrawpoolterrain.h" | ||
54 | #include "llflexibleobject.h" | ||
55 | #include "llfeaturemanager.h" | ||
56 | #include "llglslshader.h" | ||
57 | #include "llpanelgeneral.h" | ||
58 | #include "llpanelinput.h" | ||
59 | #include "llsky.h" | ||
60 | #include "llvieweraudio.h" | ||
61 | #include "llviewerimagelist.h" | ||
62 | #include "llviewerthrottle.h" | ||
63 | #include "llviewerwindow.h" | ||
64 | #include "llvoavatar.h" | ||
65 | #include "llvosurfacepatch.h" | ||
66 | #include "llvosky.h" | ||
67 | #include "llvowlsky.h" | ||
68 | #include "llvotree.h" | ||
69 | #include "llvovolume.h" | ||
70 | #include "llworld.h" | ||
71 | #include "pipeline.h" | ||
72 | #include "llviewerjoystick.h" | ||
73 | #include "llviewerparcelmgr.h" | ||
74 | #include "llparcel.h" | ||
75 | #include "llnotify.h" | ||
76 | #include "llkeyboard.h" | ||
77 | #include "llglimmediate.h" | ||
78 | |||
79 | extern BOOL gResizeScreenTexture; | ||
80 | |||
81 | void declare_settings() | ||
82 | { | ||
83 | // Somewhat under 1024 by 768, to give space for Windows task bar / Mac menu bar | ||
84 | // to emphasize window isn't actually maximized. | ||
85 | const S32 WINDOW_WIDTH = 1000; | ||
86 | const S32 WINDOW_HEIGHT = 700; | ||
87 | |||
88 | //------------------------------------------------------------------------ | ||
89 | // Color constants | ||
90 | //------------------------------------------------------------------------ | ||
91 | |||
92 | const S32 TOOL_PANEL_HEIGHT = 162 + 32; | ||
93 | const S32 TOOL_PANEL_WIDTH = 75 + 8; | ||
94 | |||
95 | // Colors that can be changed in the UI | ||
96 | gSavedSettings.declareColor4("EffectColor", LLColor4(1.f, 1.f, 1.f, 1.f), "Particle effects color"); | ||
97 | gSavedSettings.declareColor4("SystemChatColor", LLColor4(0.8f, 1.f, 1.f, 1.f), "Color of chat messages from SL System"); | ||
98 | gSavedSettings.declareColor4("AgentChatColor", LLColor4(1.0f, 1.0f, 1.0f, 1.0f), "Color of chat messages from other residents"); | ||
99 | gSavedSettings.declareColor4("ObjectChatColor", LLColor4(0.7f, 0.9f, 0.7f, 1.0f), "Color of chat messages from objects"); | ||
100 | gSavedSettings.declareColor4("llOwnerSayChatColor", LLColor4(0.99f, 0.99f, 0.69f, 1.0f), "Color of chat messages from objects only visible to the owner"); | ||
101 | gSavedSettings.declareColor4("BackgroundChatColor", LLColor4(0.f, 0.f, 0.f, 1.0f), "Color of chat bubble background"); | ||
102 | gSavedSettings.declareColor4("ScriptErrorColor", LLColor4(0.82f, 0.82f, 0.99f, 1.0f), "Color of script error messages"); | ||
103 | gSavedSettings.declareColor4("HTMLLinkColor", LLColor4(0.6f, 0.6f, 1.0f, 1.0f), "Color of hyperlinks"); | ||
104 | |||
105 | // color palette in color picker | ||
106 | gSavedSettings.declareColor4("ColorPaletteEntry01", LLColor4 ( 0.0f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
107 | gSavedSettings.declareColor4("ColorPaletteEntry02", LLColor4 ( 0.5f, 0.5f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
108 | gSavedSettings.declareColor4("ColorPaletteEntry03", LLColor4 ( 0.5f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
109 | gSavedSettings.declareColor4("ColorPaletteEntry04", LLColor4 ( 0.5f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
110 | gSavedSettings.declareColor4("ColorPaletteEntry05", LLColor4 ( 0.0f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
111 | gSavedSettings.declareColor4("ColorPaletteEntry06", LLColor4 ( 0.0f, 0.5f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
112 | gSavedSettings.declareColor4("ColorPaletteEntry07", LLColor4 ( 0.0f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
113 | gSavedSettings.declareColor4("ColorPaletteEntry08", LLColor4 ( 0.5f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
114 | gSavedSettings.declareColor4("ColorPaletteEntry09", LLColor4 ( 0.5f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
115 | gSavedSettings.declareColor4("ColorPaletteEntry10", LLColor4 ( 0.0f, 0.25f, 0.25f, 1.0f ), "Color picker palette entry"); | ||
116 | gSavedSettings.declareColor4("ColorPaletteEntry11", LLColor4 ( 0.0f, 0.5f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
117 | gSavedSettings.declareColor4("ColorPaletteEntry12", LLColor4 ( 0.0f, 0.25f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
118 | gSavedSettings.declareColor4("ColorPaletteEntry13", LLColor4 ( 0.5f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
119 | gSavedSettings.declareColor4("ColorPaletteEntry14", LLColor4 ( 0.5f, 0.25f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
120 | gSavedSettings.declareColor4("ColorPaletteEntry15", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
121 | gSavedSettings.declareColor4("ColorPaletteEntry16", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
122 | |||
123 | gSavedSettings.declareColor4("ColorPaletteEntry17", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
124 | gSavedSettings.declareColor4("ColorPaletteEntry18", LLColor4 ( 0.75f, 0.75f, 0.75f, 1.0f ), "Color picker palette entry"); | ||
125 | gSavedSettings.declareColor4("ColorPaletteEntry19", LLColor4 ( 1.0f, 0.0f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
126 | gSavedSettings.declareColor4("ColorPaletteEntry20", LLColor4 ( 1.0f, 1.0f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
127 | gSavedSettings.declareColor4("ColorPaletteEntry21", LLColor4 ( 0.0f, 1.0f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
128 | gSavedSettings.declareColor4("ColorPaletteEntry22", LLColor4 ( 0.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
129 | gSavedSettings.declareColor4("ColorPaletteEntry23", LLColor4 ( 0.0f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
130 | gSavedSettings.declareColor4("ColorPaletteEntry24", LLColor4 ( 1.0f, 0.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
131 | gSavedSettings.declareColor4("ColorPaletteEntry25", LLColor4 ( 1.0f, 1.0f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
132 | gSavedSettings.declareColor4("ColorPaletteEntry26", LLColor4 ( 0.0f, 1.0f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
133 | gSavedSettings.declareColor4("ColorPaletteEntry27", LLColor4 ( 0.5f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
134 | gSavedSettings.declareColor4("ColorPaletteEntry28", LLColor4 ( 0.5f, 0.5f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
135 | gSavedSettings.declareColor4("ColorPaletteEntry29", LLColor4 ( 1.0f, 0.0f, 0.5f, 1.0f ), "Color picker palette entry"); | ||
136 | gSavedSettings.declareColor4("ColorPaletteEntry30", LLColor4 ( 1.0f, 0.5f, 0.0f, 1.0f ), "Color picker palette entry"); | ||
137 | gSavedSettings.declareColor4("ColorPaletteEntry31", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
138 | gSavedSettings.declareColor4("ColorPaletteEntry32", LLColor4 ( 1.0f, 1.0f, 1.0f, 1.0f ), "Color picker palette entry"); | ||
139 | |||
140 | //------------------------------------------------------------------------ | ||
141 | // Main menu | ||
142 | //------------------------------------------------------------------------ | ||
143 | gSavedSettings.declareS32("MenuBarHeight", 18, "", NO_PERSIST ); | ||
144 | gSavedSettings.declareS32("MenuBarWidth", 410, "", NO_PERSIST ); | ||
145 | |||
146 | gSavedSettings.declareF32("MenuAccessKeyTime", 0.25f, "Time (seconds) in which the menu key must be tapped to move focus to the menu bar"); | ||
147 | gSavedSettings.declareBOOL("UseAltKeyForMenus", FALSE, "Access menus via keyboard by tapping Alt"); | ||
148 | // Which background overlay to use | ||
149 | gSavedSettings.declareS32("MapOverlayIndex", 0, "Currently selected world map type"); | ||
150 | |||
151 | |||
152 | //------------------------------------------------------------------------ | ||
153 | // Pie Menus | ||
154 | //------------------------------------------------------------------------ | ||
155 | gSavedSettings.declareF32("PieMenuLineWidth", 2.5f, "Width of lines in pie menu display (pixels)"); | ||
156 | |||
157 | //------------------------------------------------------------------------ | ||
158 | // Drop Shadows | ||
159 | //------------------------------------------------------------------------ | ||
160 | gSavedSettings.declareS32("DropShadowButton", 2, "Drop shadow width for buttons (pixels)"); | ||
161 | gSavedSettings.declareS32("DropShadowFloater", 5, "Drop shadow width for floaters (pixels)"); | ||
162 | gSavedSettings.declareS32("DropShadowSlider", 3, "Drop shadow width for sliders (pixels)"); | ||
163 | gSavedSettings.declareS32("DropShadowTooltip", 4, "Drop shadow width for tooltips (pixels)"); | ||
164 | |||
165 | //------------------------------------------------------------------------ | ||
166 | // Buttons | ||
167 | //------------------------------------------------------------------------ | ||
168 | gSavedSettings.declareS32("ButtonHPad", 10, "Default horizontal spacing between buttons (pixels)"); // space from left of button to text | ||
169 | gSavedSettings.declareS32("ButtonVPad", 1, "Default vertical spacing between buttons (pixels)"); // space from bottom of button to text | ||
170 | gSavedSettings.declareS32("ButtonHeightSmall", 16, "Default height for small buttons (pixels)"); | ||
171 | gSavedSettings.declareS32("ButtonHeight", 20, "Default height for normal buttons (pixels)"); | ||
172 | gSavedSettings.declareF32("ButtonFlashRate", 2.f, "Frequency at which buttons flash (hz)"); | ||
173 | gSavedSettings.declareS32("ButtonFlashCount", 3, "Number of flashes after which flashing buttons stay lit up"); | ||
174 | //gSavedSettings.declareS32("ButtonHeightToolbar", 32, "[NOT USED]"); | ||
175 | |||
176 | //gSavedSettings.declareS32("DefaultButtonWidth", DEFAULT_BUTTON_WIDTH, "[NOT USED]"); | ||
177 | //gSavedSettings.declareS32("DefaultButtonHeight", DEFAULT_BUTTON_HEIGHT, "[NOT USED]"); | ||
178 | |||
179 | //------------------------------------------------------------------------ | ||
180 | // Scroll Lists | ||
181 | //------------------------------------------------------------------------ | ||
182 | gSavedSettings.declareF32("TypeAheadTimeout", 1.5f, "Time delay before clearing type-ahead buffer in lists (seconds)"); | ||
183 | |||
184 | //------------------------------------------------------------------------ | ||
185 | // ToolTips | ||
186 | //------------------------------------------------------------------------ | ||
187 | gSavedSettings.declareF32("ToolTipDelay", 0.7f, "Seconds before displaying tooltip when mouse stops over UI element"); | ||
188 | gSavedSettings.declareF32("DragAndDropToolTipDelay", 0.1f, "Seconds before displaying tooltip when performing drag and drop operation"); | ||
189 | |||
190 | //------------------------------------------------------------------------ | ||
191 | // Auto-Open Folders | ||
192 | //------------------------------------------------------------------------ | ||
193 | gSavedSettings.declareF32("FolderAutoOpenDelay", 0.75f, "Seconds before automatically expanding the folder under the mouse when performing inventory drag and drop"); | ||
194 | gSavedSettings.declareF32("InventoryAutoOpenDelay", 1.f, "Seconds before automatically opening inventory when mouse is over inventory button when performing inventory drag and drop"); | ||
195 | gSavedSettings.declareBOOL("ShowEmptyFoldersWhenSearching", FALSE, "Shows folders that do not have any visible contents when applying a filter to inventory"); | ||
196 | 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)"); | ||
197 | gSavedSettings.declareBOOL("DebugInventoryFilters", FALSE, "Turn on debugging display for inventory filtering"); | ||
198 | gSavedSettings.declareF32("FolderLoadingMessageWaitTime", 0.5f, "Seconds to wait before showing the LOADING... text in folder views"); | ||
199 | |||
200 | //------------------------------------------------------------------------ | ||
201 | // Status bar | ||
202 | //------------------------------------------------------------------------ | ||
203 | gSavedSettings.declareS32("StatusBarHeight", 26, "Height of menu/status bar at top of screen (pixels)" ); | ||
204 | //gSavedSettings.declareS32("StatusBarButtonWidth", 80, "[NOT USED]"); | ||
205 | |||
206 | gSavedSettings.declareS32("StatusBarPad", 10, "Spacing between popup buttons at bottom of screen (Stand up, Release Controls)"); | ||
207 | |||
208 | //gSavedSettings.declareS32("ChatWidth", 250, "[NOT USED]"); | ||
209 | |||
210 | //------------------------------------------------------------------------ | ||
211 | // Toolbar bar | ||
212 | //------------------------------------------------------------------------ | ||
213 | //gSavedSettings.declareS32("ToolBarHeight", 20, "[NOT USED]" ); | ||
214 | //gSavedSettings.declareS32("ToolBarWidth", 480, "[NOT USED]" ); | ||
215 | //gSavedSettings.declareS32("ToolBarButtonWidth", 80, "[NOT USED]" ); | ||
216 | |||
217 | //------------------------------------------------------------------------ | ||
218 | // Fonts | ||
219 | //------------------------------------------------------------------------ | ||
220 | gSavedSettings.declareF32("FontScreenDPI", 96.f, "Font resolution, higher is bigger (pixels per inch)"); // windows standard | ||
221 | gSavedSettings.declareF32("FontSizeMonospace", 9.f, "Size of monospaced font (points, or 1/72 of an inch)"); | ||
222 | gSavedSettings.declareF32("FontSizeSmall", 9.f, "Size of small font (points, or 1/72 of an inch)"); | ||
223 | gSavedSettings.declareF32("FontSizeMedium", 10.f, "Size of medium font (points, or 1/72 of an inch)"); | ||
224 | gSavedSettings.declareF32("FontSizeLarge", 12.f, "Size of large font (points, or 1/72 of an inch)"); | ||
225 | gSavedSettings.declareF32("FontSizeHuge", 16.f, "Size of huge font (points, or 1/72 of an inch)"); | ||
226 | |||
227 | gSavedSettings.declareString("FontMonospace", "profontwindows.ttf", "Name of monospace font (Truetype file name)"); | ||
228 | gSavedSettings.declareString("FontSansSerif", "MtBkLfRg.ttf", "Name of san-serif font (Truetype file name)"); | ||
229 | #if LL_WINDOWS | ||
230 | // Lists Japanese, Korean, and Chinese sanserif fonts available in | ||
231 | // Windows XP and Vista, as well as "Arial Unicode MS". | ||
232 | gSavedSettings.declareString( | ||
233 | "FontSansSerifFallback", | ||
234 | "MSGOTHIC.TTC;gulim.ttc;simhei.ttf;ArialUni.ttf", | ||
235 | "Name of fallback san-serif font (Truetype file name)"); | ||
236 | #elif LL_DARWIN | ||
237 | // This is a fairly complete Japanese font that ships with Mac OS X. | ||
238 | // The first filename is in UTF8, but it shows up in the font menu as "Hiragino Kaku Gothic Pro W3". | ||
239 | // The third filename is in UTF8, but it shows up in the font menu as "STHeiti Light" | ||
240 | 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;\xE3\x83\x92\xE3\x83\xA9\xE3\x82\xAD\xE3\x82\x99\xE3\x83\x8E\xE8\xA7\x92\xE3\x82\xB3\xE3\x82\x99 ProN W3.otf;AppleGothic.dfont;AppleGothic.ttf;\xe5\x8d\x8e\xe6\x96\x87\xe7\xbb\x86\xe9\xbb\x91.ttf", "Name of san-serif font (Truetype file name)"); | ||
241 | #else | ||
242 | // 'unicode.ttf' doesn't exist, but hopefully an international | ||
243 | // user can take the hint and drop in their favourite local font. | ||
244 | gSavedSettings.declareString("FontSansSerifFallback", "unicode.ttf", "Name of fallback san-serif font (Truetype file name)"); | ||
245 | #endif | ||
246 | gSavedSettings.declareF32("FontSansSerifFallbackScale", 1.0, "Scale of fallback font relative to huge font (fraction of huge font size)"); | ||
247 | gSavedSettings.declareString("FontSansSerifBold", "MtBdLfRg.ttf", "Name of bold font (Truetype file name)"); | ||
248 | |||
249 | //------------------------------------------------------------------------ | ||
250 | // Chat | ||
251 | //------------------------------------------------------------------------ | ||
252 | |||
253 | // 0 = small, 1 = big | ||
254 | gSavedSettings.declareS32("ChatFontSize", 1, "Size of chat text in chat console (0 = small, 1 = big)"); | ||
255 | |||
256 | // Does the console occupy full window width or only left 2/3? | ||
257 | gSavedSettings.declareBOOL("ChatFullWidth", TRUE, "Chat console takes up full width of SL window"); | ||
258 | |||
259 | // opacity of console background | ||
260 | gSavedSettings.declareF32("ConsoleBackgroundOpacity", 0.4f, "Opacity of chat console (0.0 = completely transparent, 1.0 = completely opaque)"); | ||
261 | gSavedSettings.declareS32("ConsoleMaxLines", 40, "Max number of lines of chat text visible in console."); | ||
262 | |||
263 | // Seconds to keep line of text on console | ||
264 | gSavedSettings.declareF32("ChatPersistTime", 15.f, "Time for which chat stays visible in console (seconds)"); | ||
265 | gSavedSettings.declareBOOL("PlayTypingAnim", TRUE, "Your avatar plays the typing animation whenever you type in the chat bar"); | ||
266 | |||
267 | // show chat in bubbles above avatar heads | ||
268 | gSavedSettings.declareBOOL("UseChatBubbles", FALSE, "Show chat above avatars head in chat bubbles"); | ||
269 | gSavedSettings.declareF32("ChatBubbleOpacity", 0.5f, "Opacity of chat bubble background (0.0 = completely transparent, 1.0 = completely opaque)"); | ||
270 | |||
271 | gSavedSettings.declareBOOL("AllowIdleAFK", TRUE, "Automatically set AFK (away from keyboard) mode when idle"); | ||
272 | gSavedSettings.declareF32("AFKTimeout", 300.f, "Time before automatically setting AFK (away from keyboard) mode (seconds)"); // 5 minutes | ||
273 | |||
274 | gSavedSettings.declareBOOL("SmallAvatarNames", TRUE, "Display avatar name text in smaller font"); | ||
275 | gSavedSettings.declareBOOL("ScriptErrorsAsChat", FALSE, "Display script errors and warning in chat history"); | ||
276 | |||
277 | gSavedSettings.declareBOOL("ChatShowTimestamps", TRUE, "Show timestamps in chat"); | ||
278 | |||
279 | gSavedSettings.declareBOOL("EnableVoiceChat", TRUE, "Enable talking to other residents with a microphone"); | ||
280 | gSavedSettings.declareBOOL("VoiceCallsFriendsOnly", FALSE, "Only accept voice calls from residents on your friends list"); | ||
281 | gSavedSettings.declareBOOL("PTTCurrentlyEnabled", TRUE, "", NO_PERSIST); | ||
282 | gSavedSettings.declareBOOL("ShowVoiceChannelPopup", FALSE, "Controls visibility of the current voice channel popup above the voice tab"); | ||
283 | gSavedSettings.declareBOOL("EnablePushToTalk", TRUE, "Must hold down a key or moouse button when talking into your microphone"); | ||
284 | gSavedSettings.declareString("PushToTalkButton", "MiddleMouse", "Which button or keyboard key is used for push-to-talk"); | ||
285 | gSavedSettings.declareBOOL("PushToTalkToggle", FALSE, "Should the push-to-talk button behave as a toggle"); | ||
286 | gSavedSettings.declareS32("VoiceEarLocation", 0, "Location of the virtual ear for voice"); | ||
287 | gSavedSettings.declareString("VivoxDebugServerName", "bhd.vivox.com", "Hostname of the vivox account server to use for voice when not connected to Agni."); | ||
288 | gSavedSettings.declareColor4("SpeakingColor", LLColor4(0.f, 1.f, 0.f, 1.f), "Color of various indicators when resident is speaking on a voice channel."); | ||
289 | gSavedSettings.declareColor4("OverdrivenColor", LLColor4(1.f, 0.f, 0.f, 1.f), "Color of various indicators when resident is speaking too loud."); | ||
290 | gSavedSettings.declareString("VoiceInputAudioDevice", "Default", "Audio input device to use for voice"); | ||
291 | gSavedSettings.declareString("VoiceOutputAudioDevice", "Default", "Audio output device to use for voice"); | ||
292 | gSavedSettings.declareString("VivoxDebugLevel", "-1", "Logging level to use when launching the vivox daemon"); | ||
293 | |||
294 | //voice amplitude images; | ||
295 | |||
296 | /* | ||
297 | gSavedSettings.declareString("VoiceImageLevel0", "5b41b4c3-eb70-0f0f-17d9-1765cbd07d39", "Texture UUID for voice image level 0"); | ||
298 | gSavedSettings.declareString("VoiceImageLevel1", "b06ffd0a-7bfe-0449-0bbc-df291f1857c4", "Texture UUID for voice image level 1"); | ||
299 | gSavedSettings.declareString("VoiceImageLevel2", "bfa16494-b731-5b59-3260-9e4fd29d63f7", "Texture UUID for voice image level 2"); | ||
300 | gSavedSettings.declareString("VoiceImageLevel3", "6951074f-de1d-3c55-cb2f-e972877f7f81", "Texture UUID for voice image level 3"); | ||
301 | gSavedSettings.declareString("VoiceImageLevel4", "ce3df80a-f0c5-a7cb-f5bc-d3bb38949d0d", "Texture UUID for voice image level 4"); | ||
302 | gSavedSettings.declareString("VoiceImageLevel5", "8d0e359c-5cea-bdf5-b6b0-32d2fea6355c", "Texture UUID for voice image level 5"); | ||
303 | gSavedSettings.declareString("VoiceImageLevel6", "ad9e64e0-a763-5d8c-f2e8-7b5dfdb7f20f", "Texture UUID for voice image level 6"); | ||
304 | */ | ||
305 | |||
306 | /* | ||
307 | // Jeffrey's first version | ||
308 | gSavedSettings.declareString("VoiceImageLevel0", "5b41b4c3-eb70-0f0f-17d9-1765cbd07d39", "Texture UUID for voice image level 0"); | ||
309 | gSavedSettings.declareString("VoiceImageLevel1", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 1"); | ||
310 | gSavedSettings.declareString("VoiceImageLevel2", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 2"); | ||
311 | gSavedSettings.declareString("VoiceImageLevel3", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 3"); | ||
312 | gSavedSettings.declareString("VoiceImageLevel4", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 4"); | ||
313 | gSavedSettings.declareString("VoiceImageLevel5", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 5"); | ||
314 | gSavedSettings.declareString("VoiceImageLevel6", "cde76ae8-0044-d575-8e2c-65fb0a14cbde", "Texture UUID for voice image level 6"); | ||
315 | */ | ||
316 | |||
317 | // Brent's first version | ||
318 | /* | ||
319 | gSavedSettings.declareString("VoiceImageLevel0", "5b41b4c3-eb70-0f0f-17d9-1765cbd07d39", "Texture UUID for voice image level 0"); | ||
320 | gSavedSettings.declareString("VoiceImageLevel1", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 1"); | ||
321 | gSavedSettings.declareString("VoiceImageLevel2", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 2"); | ||
322 | gSavedSettings.declareString("VoiceImageLevel3", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 3"); | ||
323 | gSavedSettings.declareString("VoiceImageLevel4", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 4"); | ||
324 | gSavedSettings.declareString("VoiceImageLevel5", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 5"); | ||
325 | gSavedSettings.declareString("VoiceImageLevel6", "72365124-c7a7-a1f9-3d7a-d8e521eb5011", "Texture UUID for voice image level 6"); | ||
326 | */ | ||
327 | |||
328 | /* | ||
329 | // Brent's second version | ||
330 | gSavedSettings.declareString("VoiceImageLevel0", "5b41b4c3-eb70-0f0f-17d9-1765cbd07d39", "Texture UUID for voice image level 0"); | ||
331 | gSavedSettings.declareString("VoiceImageLevel1", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 1"); | ||
332 | gSavedSettings.declareString("VoiceImageLevel2", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 2"); | ||
333 | gSavedSettings.declareString("VoiceImageLevel3", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 3"); | ||
334 | gSavedSettings.declareString("VoiceImageLevel4", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 4"); | ||
335 | gSavedSettings.declareString("VoiceImageLevel5", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 5"); | ||
336 | gSavedSettings.declareString("VoiceImageLevel6", "4ee6a7ac-472e-b5ff-7125-f6213798cbee", "Texture UUID for voice image level 6"); | ||
337 | */ | ||
338 | |||
339 | // Jeffrey's tweak on 4/9/07 | ||
340 | gSavedSettings.declareString("VoiceImageLevel0", "041ee5a0-cb6a-9ac5-6e49-41e9320507d5", "Texture UUID for voice image level 0"); | ||
341 | gSavedSettings.declareString("VoiceImageLevel1", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 1"); | ||
342 | gSavedSettings.declareString("VoiceImageLevel2", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 2"); | ||
343 | gSavedSettings.declareString("VoiceImageLevel3", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 3"); | ||
344 | gSavedSettings.declareString("VoiceImageLevel4", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 4"); | ||
345 | gSavedSettings.declareString("VoiceImageLevel5", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 5"); | ||
346 | gSavedSettings.declareString("VoiceImageLevel6", "29de489d-0491-fb00-7dab-f9e686d31e83", "Texture UUID for voice image level 6"); | ||
347 | |||
348 | gSavedSettings.declareString("VoiceHost", "127.0.0.1", "Client SLVoice host to connect to"); | ||
349 | gSavedSettings.declareU32("VoicePort", 44124, "Client SLVoice port to connect to"); | ||
350 | |||
351 | //------------------------------------------------------------------------ | ||
352 | // Caution Script Permission Prompts | ||
353 | //------------------------------------------------------------------------ | ||
354 | |||
355 | gSavedSettings.declareBOOL("PermissionsCautionEnabled", TRUE, "When enabled, changes the handling of script permission requests to help avoid accidental granting of certain permissions, such as the debit permission", NO_PERSIST); | ||
356 | gSavedSettings.declareS32("PermissionsCautionNotifyBoxHeight", 344, "Height of caution-style notification messages", NO_PERSIST); | ||
357 | |||
358 | //------------------------------------------------------------------------ | ||
359 | // Other.... | ||
360 | //------------------------------------------------------------------------ | ||
361 | |||
362 | gSavedSettings.declareBOOL("ScriptHelpFollowsCursor", FALSE, "Scripting help window updates contents based on script editor contents under text cursor"); | ||
363 | |||
364 | gSavedSettings.declareS32("LastFeatureVersion", 0, "[DO NOT MODIFY] Version number for tracking hardware changes", TRUE); | ||
365 | gSavedSettings.declareS32("NumSessions", 0, "Number of successful logins to Second Life"); | ||
366 | gSavedSettings.declareBOOL("ShowInventory", FALSE, "Open inventory window on login"); | ||
367 | gSavedSettings.declareBOOL("ChatOnlineNotification", TRUE, "Provide notifications for when friend log on and off of SL"); | ||
368 | |||
369 | gSavedSettings.declareString("DefaultObjectTexture", "89556747-24cb-43ed-920b-47caed15465f", "Texture used as 'Default' in texture picker. (UUID texture reference)" ); // maple texture | ||
370 | |||
371 | gSavedSettings.declareBOOL("ShowPropertyLines", FALSE, "Show line overlay demarking property boundaries"); | ||
372 | gSavedSettings.declareBOOL("ShowParcelOwners", FALSE, "", NO_PERSIST); | ||
373 | gSavedSettings.declareBOOL("ToolboxAutoMove", FALSE, "[NOT USED]"); | ||
374 | gSavedSettings.declareBOOL("ToolboxShowMore", TRUE, "Whether to show additional build tool controls", TRUE); | ||
375 | |||
376 | gSavedSettings.declareRect("ToolboxRect", LLRect(0, 100, 100, 100), "Rectangle for tools window" ); // only care about position | ||
377 | |||
378 | // User interface button states | ||
379 | gSavedSettings.declareBOOL("FirstPersonBtnState", FALSE, "", NO_PERSIST); | ||
380 | gSavedSettings.declareBOOL("MouselookBtnState", FALSE, "", NO_PERSIST); | ||
381 | gSavedSettings.declareBOOL("ThirdPersonBtnState", TRUE, "", NO_PERSIST); | ||
382 | gSavedSettings.declareBOOL("BuildBtnState", FALSE, "", NO_PERSIST); | ||
383 | |||
384 | //gSavedSettings.declareBOOL("TalkBtnState", FALSE, "[NOT USED]"); | ||
385 | |||
386 | gSavedSettings.declareBOOL("ShowPermissions", FALSE, "", NO_PERSIST); | ||
387 | gSavedSettings.declareBOOL("ShowTools", FALSE, "", NO_PERSIST); | ||
388 | |||
389 | |||
390 | 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 | ||
391 | |||
392 | // gSavedSettings.declareBOOL("ShowBasicHelpOnLaunch", TRUE); | ||
393 | gSavedSettings.declareRect("BasicHelpRect", LLRect(0, 404, 467, 0), "Rectangle for help window" ); // Only width and height are used | ||
394 | |||
395 | gSavedSettings.declareS32("LastPrefTab", 0, "Last selected tab in preferences window"); | ||
396 | |||
397 | gSavedSettings.declareString("LSLHelpURL", "https://wiki.secondlife.com/wiki/[LSL_STRING]", "URL that points to LSL help files, with [LSL_STRING] corresponding to the referenced LSL function or keyword"); | ||
398 | // link for editable wiki (https doesn't seem to work right now with our embedded browser) | ||
399 | //gSavedSettings.declareString("LSLHelpURL", "https://wiki.secondlife.com/wiki/[LSL_STRING]", "URL that points to LSL help files, with [LSL_STRING] corresponding to the referenced LSL function or keyword"); | ||
400 | // Wearable default images | ||
401 | // const char* UI_IMG_BLACK_UUID = "e2244626-f22f-4839-8123-1e7baddeb659"; | ||
402 | const char* UI_IMG_WHITE_UUID = "5748decc-f629-461c-9a36-a35a221fe21f"; | ||
403 | // const char* UI_IMG_DARKGRAY_UUID = "267e26d3-e0e1-41b8-91b1-3b337102928d"; | ||
404 | // const char* UI_IMG_LIGHTGRAY_UUID = "c520bf46-cc5d-412b-a60b-9f1bd245189f"; | ||
405 | |||
406 | gSavedSettings.declareString("UIImgDefaultShirtUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
407 | gSavedSettings.declareString("UIImgDefaultPantsUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
408 | gSavedSettings.declareString("UIImgDefaultEyesUUID", "6522e74d-1660-4e7f-b601-6f48c1659a77", "", NO_PERSIST); | ||
409 | gSavedSettings.declareString("UIImgDefaultHairUUID", "7ca39b4c-bd19-4699-aff7-f93fd03d3e7b", "", NO_PERSIST); | ||
410 | gSavedSettings.declareString("UIImgDefaultShoesUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
411 | gSavedSettings.declareString("UIImgDefaultSocksUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
412 | gSavedSettings.declareString("UIImgDefaultGlovesUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
413 | gSavedSettings.declareString("UIImgDefaultJacketUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
414 | gSavedSettings.declareString("UIImgDefaultUnderwearUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
415 | gSavedSettings.declareString("UIImgDefaultSkirtUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
416 | |||
417 | // Utility color for texture defaults | ||
418 | gSavedSettings.declareString("UIImgWhiteUUID", UI_IMG_WHITE_UUID, "", NO_PERSIST); | ||
419 | |||
420 | // Movement widget controls | ||
421 | const S32 MOVE_BTN_COL1 = 20; | ||
422 | const S32 MOVE_BTN_COL2 = MOVE_BTN_COL1 + 25; | ||
423 | const S32 MOVE_BTN_COL3 = MOVE_BTN_COL2 + 21; | ||
424 | const S32 MOVE_BTN_COL4 = MOVE_BTN_COL3 + 25; | ||
425 | const S32 MOVE_BTN_COL5 = MOVE_BTN_COL4 + 25; | ||
426 | // const S32 MOVE_BTN_COL6 = MOVE_BTN_COL5 + 20; | ||
427 | const S32 MOVE_BTN_ROW1 = 4; | ||
428 | const S32 MOVE_BTN_ROW2 = MOVE_BTN_ROW1 + 25; | ||
429 | const S32 MOVE_BTN_ROW3 = MOVE_BTN_ROW2 + 25; | ||
430 | const S32 MOVE_BTN_FLY_LEFT = MOVE_BTN_COL1+96; | ||
431 | const S32 MOVE_BTN_FLY_WIDTH = 40; | ||
432 | const S32 MOVE_BTN_FLY_RIGHT = MOVE_BTN_FLY_LEFT + MOVE_BTN_FLY_WIDTH; | ||
433 | |||
434 | //gSavedSettings.declareBOOL("CreateObjectsCentered", FALSE, "[NOT USED]"); | ||
435 | |||
436 | //gSavedSettings.declareBOOL("ShowMoveArrows", TRUE, "[NOT USED]"); | ||
437 | |||
438 | gSavedSettings.declareRect("SlideLeftBtnRect", | ||
439 | LLRect(MOVE_BTN_COL1, MOVE_BTN_ROW3, MOVE_BTN_COL2, MOVE_BTN_ROW2), | ||
440 | "", NO_PERSIST ); | ||
441 | gSavedSettings.declareRect("TurnLeftBtnRect", | ||
442 | LLRect(MOVE_BTN_COL1, MOVE_BTN_ROW2, MOVE_BTN_COL2, MOVE_BTN_ROW1), | ||
443 | "", NO_PERSIST ); | ||
444 | gSavedSettings.declareRect("ForwardBtnRect", | ||
445 | LLRect(MOVE_BTN_COL2, MOVE_BTN_ROW3, MOVE_BTN_COL3, MOVE_BTN_ROW2), | ||
446 | "", NO_PERSIST ); | ||
447 | gSavedSettings.declareRect("BackwardBtnRect", | ||
448 | LLRect(MOVE_BTN_COL2, MOVE_BTN_ROW2, MOVE_BTN_COL3, MOVE_BTN_ROW1), | ||
449 | "", NO_PERSIST ); | ||
450 | gSavedSettings.declareRect("SlideRightBtnRect", | ||
451 | LLRect(MOVE_BTN_COL3, MOVE_BTN_ROW3, MOVE_BTN_COL4, MOVE_BTN_ROW2), | ||
452 | "", NO_PERSIST ); | ||
453 | gSavedSettings.declareRect("TurnRightBtnRect", | ||
454 | LLRect(MOVE_BTN_COL3, MOVE_BTN_ROW2, MOVE_BTN_COL4, MOVE_BTN_ROW1), | ||
455 | "", NO_PERSIST ); | ||
456 | gSavedSettings.declareRect("MoveUpBtnRect", | ||
457 | LLRect(MOVE_BTN_COL4, MOVE_BTN_ROW3, MOVE_BTN_COL5, MOVE_BTN_ROW2), | ||
458 | "", NO_PERSIST ); | ||
459 | gSavedSettings.declareRect("MoveDownBtnRect", | ||
460 | LLRect(MOVE_BTN_COL4, MOVE_BTN_ROW2, MOVE_BTN_COL5, MOVE_BTN_ROW1), | ||
461 | "", NO_PERSIST ); | ||
462 | gSavedSettings.declareBOOL("FlyBtnState", FALSE, "", NO_PERSIST); | ||
463 | gSavedSettings.declareBOOL("SitBtnState", FALSE, "", NO_PERSIST); | ||
464 | gSavedSettings.declareRect("FlyBtnRect", | ||
465 | LLRect(MOVE_BTN_FLY_LEFT, 20, MOVE_BTN_FLY_RIGHT, 4), "", NO_PERSIST ); | ||
466 | gSavedSettings.declareBOOL("RunBtnState", FALSE, "", NO_PERSIST); | ||
467 | gSavedSettings.declareRect("RunBtnRect", | ||
468 | LLRect(MOVE_BTN_FLY_LEFT, 40, MOVE_BTN_FLY_RIGHT, 24), "", NO_PERSIST ); | ||
469 | |||
470 | const S32 MOVE_WIDTH = MOVE_BTN_FLY_RIGHT + 4; | ||
471 | const S32 MOVE_HEIGHT = MOVE_BTN_ROW3 + 4; | ||
472 | gSavedSettings.declareRect("FloaterMoveRect", LLRect(0, MOVE_HEIGHT, MOVE_WIDTH, 0), "Rectangle for avatar control window"); | ||
473 | |||
474 | // 0 = never, 1 = fade, 2 = always | ||
475 | gSavedSettings.declareS32("RenderName", 2, "Controls display of names above avatars (0 = never, 1 = fade, 2 = always)"); | ||
476 | gSavedSettings.declareF32("RenderNameShowTime", 10.f, "Fade avatar names after specified time (seconds)"); // seconds | ||
477 | gSavedSettings.declareF32("RenderNameFadeDuration", 1.f, "Time interval over which to fade avatar names (seconds)"); // seconds | ||
478 | gSavedSettings.declareBOOL("RenderNameHideSelf", FALSE, "Don't display own name above avatar"); | ||
479 | gSavedSettings.declareBOOL("RenderHideGroupTitle", FALSE, "Don't show my group title in my name label"); | ||
480 | gSavedSettings.declareBOOL("RenderGroupTitleAll", TRUE, "Show group titles in name labels"); | ||
481 | |||
482 | // Camera widget controls | ||
483 | const S32 CAMERA_OFFSET = 64; | ||
484 | const S32 CAMERA_LEFT = MOVE_BTN_FLY_RIGHT + 10; | ||
485 | const S32 CAMERA_WIDTH = 16 + 64 + 16 + 64 + 16; | ||
486 | const S32 CAMERA_HEIGHT = 64; | ||
487 | gSavedSettings.declareRect("FloaterCameraRect", | ||
488 | LLRect(CAMERA_LEFT + CAMERA_OFFSET, CAMERA_HEIGHT + CAMERA_OFFSET, CAMERA_LEFT+CAMERA_WIDTH + CAMERA_OFFSET, 0 + CAMERA_OFFSET), "Rectangle for camera control window"); | ||
489 | |||
490 | // Tool view | ||
491 | LLRect floater_tools_rect; | ||
492 | floater_tools_rect.setOriginAndSize(0, 300, TOOL_PANEL_WIDTH, 368); | ||
493 | //gSavedSettings.declareRect("FloaterToolsRect", floater_tools_rect, "[NOT USED]"); | ||
494 | gSavedSettings.declareRect("ToolHelpRect", LLRect(8, TOOL_PANEL_HEIGHT-16, TOOL_PANEL_WIDTH -8, TOOL_PANEL_HEIGHT-16-16), "", NO_PERSIST); // relative to ToolPanelRect | ||
495 | |||
496 | gSavedSettings.declareRect("FloaterFriendsRect", LLRect(0, 400, 250, 0), "Rectangle for friends window"); | ||
497 | gSavedSettings.declareRect("FloaterSnapshotRect", LLRect(0, 200, 200, 400), "Rectangle for snapshot window"); | ||
498 | |||
499 | //gSavedSettings.declareRect("AccountHistoryRect", LLRect(100, 500, 500, 200), "[NOT USED]"); | ||
500 | |||
501 | // Energy bar | ||
502 | //gSavedSettings.declareBOOL("ShowEnergyPanel", FALSE, "[NOT USED]"); | ||
503 | gSavedSettings.declareS32("EnergyFromTop", 20, "", NO_PERSIST ); | ||
504 | gSavedSettings.declareS32("EnergyWidth", 175, "", NO_PERSIST ); | ||
505 | gSavedSettings.declareS32("EnergyHeight", 40, "", NO_PERSIST ); | ||
506 | |||
507 | gSavedSettings.declareBOOL("UIFloaterTestBool", FALSE, "Example saved setting for the test floater"); | ||
508 | |||
509 | //------------------------------------------------------------------------ | ||
510 | // UI UUIDS | ||
511 | //------------------------------------------------------------------------ | ||
512 | gSavedSettings.declareString("UIImgBtnCloseInactiveUUID", "779e4fa3-9b13-f74a-fba9-3886fe9c86ba", "", NO_PERSIST); | ||
513 | gSavedSettings.declareString("UIImgBtnCloseActiveUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST); | ||
514 | gSavedSettings.declareString("UIImgBtnClosePressedUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST); | ||
515 | |||
516 | gSavedSettings.declareString("UIImgBtnMinimizeInactiveUUID","6e72abba-1378-437f-bf7a-f0c15f3e99a3", "", NO_PERSIST); | ||
517 | gSavedSettings.declareString("UIImgBtnMinimizeActiveUUID", "34c9398d-bb78-4643-9633-46a2fa3e9637", "", NO_PERSIST); | ||
518 | gSavedSettings.declareString("UIImgBtnMinimizePressedUUID", "39801651-26cb-4926-af57-7af9352c273c", "", NO_PERSIST); | ||
519 | |||
520 | gSavedSettings.declareString("UIImgBtnRestoreInactiveUUID", "0eafa471-70af-4882-b8c1-40a310929744", "", NO_PERSIST); | ||
521 | gSavedSettings.declareString("UIImgBtnRestoreActiveUUID", "111b39de-8928-4690-b7b2-e17d5c960277", "", NO_PERSIST); | ||
522 | gSavedSettings.declareString("UIImgBtnRestorePressedUUID", "90a0ed5c-2e7b-4845-9958-a64a1b30f312", "", NO_PERSIST); | ||
523 | |||
524 | gSavedSettings.declareString("UIImgBtnTearOffInactiveUUID", "74e1a96f-4833-a24d-a1bb-1bce1468b0e7", "", NO_PERSIST); | ||
525 | gSavedSettings.declareString("UIImgBtnTearOffActiveUUID", "74e1a96f-4833-a24d-a1bb-1bce1468b0e7", "", NO_PERSIST); | ||
526 | gSavedSettings.declareString("UIImgBtnTearOffPressedUUID", "d2524c13-4ba6-af7c-e305-8ac6cc18d86a", "", NO_PERSIST); | ||
527 | |||
528 | // Stay in IM after hitting return. | ||
529 | gSavedSettings.declareBOOL("PinTalkViewOpen", TRUE, "Stay in IM after hitting return"); | ||
530 | |||
531 | // Close chat after hitting return. | ||
532 | gSavedSettings.declareBOOL("CloseChatOnReturn", FALSE, "Close chat after hitting return"); | ||
533 | |||
534 | // Copy IM messages into chat history | ||
535 | gSavedSettings.declareBOOL("ContactsTornOff", FALSE, "Show contacts window separately from Communicate window."); | ||
536 | gSavedSettings.declareBOOL("ChatHistoryTornOff", FALSE, "Show chat history window separately from Communicate window."); | ||
537 | gSavedSettings.declareBOOL("IMInChatHistory", FALSE, "Copy IM into chat history"); | ||
538 | gSavedSettings.declareBOOL("IMShowTimestamps", TRUE, "Show timestamps in IM"); | ||
539 | |||
540 | // Has the user intentionally entered chatting mode, hence wanting the | ||
541 | // chat UI to be displayed, keyboard focus to go into chat, etc. | ||
542 | gSavedSettings.declareBOOL("ChatVisible", FALSE, "Chat bar is visible"); | ||
543 | |||
544 | gSavedSettings.declareString("UIImgDirectionArrowUUID", "586383e8-4d9b-4fba-9196-2b5938e79c2c", "", NO_PERSIST); | ||
545 | |||
546 | gSavedSettings.declareString("UIImgResizeBottomRightUUID", "e3690e25-9690-4f6c-a745-e7dcd885285a", "", NO_PERSIST); | ||
547 | |||
548 | // Move buttons | ||
549 | gSavedSettings.declareString("UIImgBtnForwardOutUUID", "a0eb4021-1b20-4a53-892d-8faa9265a6f5", "", NO_PERSIST); | ||
550 | gSavedSettings.declareString("UIImgBtnForwardInUUID", "54197a61-f5d1-4c29-95d2-c071d08849cb", "", NO_PERSIST); | ||
551 | gSavedSettings.declareString("UIImgBtnSlideLeftOutUUID", "82476321-0374-4c26-9567-521535ab4cd7", "", NO_PERSIST); | ||
552 | gSavedSettings.declareString("UIImgBtnSlideLeftInUUID", "724996f5-b956-46f6-9844-4fcfce1d5e83", "", NO_PERSIST); | ||
553 | gSavedSettings.declareString("UIImgBtnLeftOutUUID", "13a93910-6b44-45eb-ad3a-4d1324c59bac", "", NO_PERSIST); | ||
554 | gSavedSettings.declareString("UIImgBtnLeftInUUID", "95463c78-aaa6-464d-892d-3a805b6bb7bf", "", NO_PERSIST); | ||
555 | gSavedSettings.declareString("UIImgBtnRightOutUUID", "5a44fd04-f52b-4c30-8b00-4a31e27614bd", "", NO_PERSIST); | ||
556 | gSavedSettings.declareString("UIImgBtnRightInUUID", "5e616d0d-4335-476f-9977-560bccd009da", "", NO_PERSIST); | ||
557 | gSavedSettings.declareString("UIImgBtnSlideRightOutUUID", "1fbe4e60-0607-44d1-a50a-032eff56ae75", "", NO_PERSIST); | ||
558 | gSavedSettings.declareString("UIImgBtnSlideRightInUUID", "7eeb57d2-3f37-454d-a729-8b217b8be443", "", NO_PERSIST); | ||
559 | gSavedSettings.declareString("UIImgBtnMoveUpInUUID", "49b4b357-e430-4b56-b9e0-05b8759c3c82", "", NO_PERSIST); | ||
560 | gSavedSettings.declareString("UIImgBtnMoveUpOutUUID", "f887146d-829f-4e39-9211-cf872b78f97c", "", NO_PERSIST); | ||
561 | gSavedSettings.declareString("UIImgBtnMoveDownInUUID", "b92a70b9-c841-4c94-b4b3-cee9eb460d48", "", NO_PERSIST); | ||
562 | gSavedSettings.declareString("UIImgBtnMoveDownOutUUID", "b5abc9fa-9e62-4e03-bc33-82c4c1b6b689", "", NO_PERSIST); | ||
563 | |||
564 | // gSavedSettings.declareString("UIImgBtnPopupOutUUID", "f41ecdbf-e4b7-4eae-80fa-f0c842d85c1c"); | ||
565 | // gSavedSettings.declareString("UIImgBtnPopupInUUID", "432fd877-f2ad-45ce-8ae7-d1ced88462cb"); | ||
566 | |||
567 | // Scrollbar | ||
568 | gSavedSettings.declareString("UIImgBtnScrollUpOutUUID", "dad084d7-9a46-452a-b0ff-4b9f1cefdde9", "", NO_PERSIST); | ||
569 | gSavedSettings.declareString("UIImgBtnScrollUpInUUID", "a93abdf3-27b5-4e22-a8fa-c48216cd2e3a", "", NO_PERSIST); | ||
570 | gSavedSettings.declareString("UIImgBtnScrollDownOutUUID", "b4ecdecf-5c8d-44e7-b882-17a77e88ed55", "", NO_PERSIST); | ||
571 | gSavedSettings.declareString("UIImgBtnScrollDownInUUID", "d2421bab-2eaf-4863-b8f6-5e4c52519247", "", NO_PERSIST); | ||
572 | gSavedSettings.declareString("UIImgBtnScrollLeftOutUUID", "43773e8d-49aa-48e0-80f3-a04715f4677a", "", NO_PERSIST); | ||
573 | gSavedSettings.declareString("UIImgBtnScrollLeftInUUID", "ea137a32-6718-4d05-9c22-7d570d27b2cd", "", NO_PERSIST); | ||
574 | gSavedSettings.declareString("UIImgBtnScrollRightOutUUID", "3d700d19-e708-465d-87f2-46c8c0ee7938", "", NO_PERSIST); | ||
575 | gSavedSettings.declareString("UIImgBtnScrollRightInUUID", "b749de64-e903-4c3c-ac0b-25fb6fa39cb5", "", NO_PERSIST); | ||
576 | |||
577 | gSavedSettings.declareString("UIImgBtnJumpLeftOutUUID", "3c18c87e-5f50-14e2-e744-f44734aa365f", "", NO_PERSIST); | ||
578 | gSavedSettings.declareString("UIImgBtnJumpLeftInUUID", "9cad3e6d-2d6d-107d-f8ab-5ba272b5bfe1", "", NO_PERSIST); | ||
579 | gSavedSettings.declareString("UIImgBtnJumpRightOutUUID", "ff9a71eb-7414-4cf8-866e-a701deb7c3cf", "", NO_PERSIST); | ||
580 | gSavedSettings.declareString("UIImgBtnJumpRightInUUID", "7dabc040-ec13-2309-ddf7-4f161f6de2f4", "", NO_PERSIST); | ||
581 | |||
582 | // Spin control | ||
583 | gSavedSettings.declareString("UIImgBtnSpinUpOutUUID", "56576e6e-6710-4e66-89f9-471b59122794", "", NO_PERSIST); | ||
584 | gSavedSettings.declareString("UIImgBtnSpinUpInUUID", "c8450082-96a0-4319-8090-d3ff900b4954", "", NO_PERSIST); | ||
585 | gSavedSettings.declareString("UIImgBtnSpinDownOutUUID", "b6d240dd-5602-426f-b606-bbb49a30726d", "", NO_PERSIST); | ||
586 | gSavedSettings.declareString("UIImgBtnSpinDownInUUID", "a985ac71-052f-48e6-9c33-d931c813ac92", "", NO_PERSIST); | ||
587 | |||
588 | // Radio button control | ||
589 | gSavedSettings.declareString("UIImgRadioActiveUUID", "7a1ba9b8-1047-4d1e-9cfc-bc478c80b63f", "", NO_PERSIST); | ||
590 | gSavedSettings.declareString("UIImgRadioActiveSelectedUUID", "52f09e07-5816-4052-953c-94c6c10479b7", "", NO_PERSIST); | ||
591 | gSavedSettings.declareString("UIImgRadioInactiveUUID", "90688481-67ff-4af0-be69-4aa084bcad1e", "", NO_PERSIST); | ||
592 | gSavedSettings.declareString("UIImgRadioInactiveSelectedUUID", "1975db39-aa29-4251-aea0-409ac09d414d", "", NO_PERSIST); | ||
593 | |||
594 | // Checkbox control | ||
595 | gSavedSettings.declareString("UIImgCheckboxActiveUUID", "05bb64ee-96fd-4243-b74e-f40a41bc53ba", "", NO_PERSIST); | ||
596 | gSavedSettings.declareString("UIImgCheckboxActiveSelectedUUID", "cf4a2ed7-1533-4686-9dde-df9a37ddca55", "", NO_PERSIST); | ||
597 | gSavedSettings.declareString("UIImgCheckboxInactiveUUID", "7d94cb59-32a2-49bf-a516-9e5a2045f9d9", "", NO_PERSIST); | ||
598 | gSavedSettings.declareString("UIImgCheckboxInactiveSelectedUUID", "c817c642-9abd-4236-9287-ae0513fe7d2b", "", NO_PERSIST); | ||
599 | |||
600 | // Tab panels | ||
601 | gSavedSettings.declareString("UIImgBtnTabTopPartialOutUUID", "932ad585-0e45-4a57-aa23-4cf81beeb7b0", "", NO_PERSIST); | ||
602 | gSavedSettings.declareString("UIImgBtnTabTopPartialInUUID", "7c6c6c26-0e25-4438-89bd-30d8b8e9d704", "", NO_PERSIST); | ||
603 | gSavedSettings.declareString("UIImgBtnTabBottomPartialOutUUID", "8dca716c-b29c-403a-9886-91c028357d6e", "", NO_PERSIST); | ||
604 | gSavedSettings.declareString("UIImgBtnTabBottomPartialInUUID", "eb0b0904-8c91-4f24-b500-1180b91140de", "", NO_PERSIST); | ||
605 | gSavedSettings.declareString("UIImgBtnTabTopOutUUID", "1ed83f57-41cf-4052-a3b4-2e8bb78d8191", "", NO_PERSIST); | ||
606 | gSavedSettings.declareString("UIImgBtnTabTopInUUID", "16d032e8-817b-4368-8a4e-b7b947ae3889", "", NO_PERSIST); | ||
607 | gSavedSettings.declareString("UIImgBtnTabBottomOutUUID", "bf0a8779-689b-48c3-bb9a-6af546366ef4", "", NO_PERSIST); | ||
608 | gSavedSettings.declareString("UIImgBtnTabBottomInUUID", "c001d8fd-a869-4b6f-86a1-fdcb106df9c7", "", NO_PERSIST); | ||
609 | |||
610 | // Tools | ||
611 | // TODO: Move to gViewerArt | ||
612 | gSavedSettings.declareString("UIImgGrabUUID", "c63f124c-6340-4fbf-b59e-0869a44adb64", "", NO_PERSIST); | ||
613 | gSavedSettings.declareString("UIImgGrabSelectedUUID", "c1e21504-f136-451d-b8e9-929037812f1d", "", NO_PERSIST); | ||
614 | |||
615 | gSavedSettings.declareString("UIImgMoveUUID", "2fa5dc06-bcdd-4e09-a426-f9f262d4fa65", "", NO_PERSIST); | ||
616 | gSavedSettings.declareString("UIImgMoveSelectedUUID", "46f17c7b-8381-48c3-b628-6a406e060dd6", "", NO_PERSIST); | ||
617 | |||
618 | gSavedSettings.declareString("UIImgRotateUUID", "c34b1eaa-aae3-4351-b082-e26c0b636779", "", NO_PERSIST); | ||
619 | gSavedSettings.declareString("UIImgRotateSelectedUUID", "cdfb7fde-0d13-418a-9d89-2bd91019fc95", "", NO_PERSIST); | ||
620 | |||
621 | gSavedSettings.declareString("UIImgScaleUUID", "88a90fef-b448-4883-9344-ecf378a60433", "", NO_PERSIST); | ||
622 | gSavedSettings.declareString("UIImgScaleSelectedUUID", "55aa57ef-508a-47f7-8867-85d21c5a810d", "", NO_PERSIST); | ||
623 | |||
624 | gSavedSettings.declareString("UIImgFaceUUID", "ce15fd63-b0b6-463c-a37d-ea6393208b3e", "", NO_PERSIST); | ||
625 | gSavedSettings.declareString("UIImgFaceSelectedUUID", "b4870163-6208-42a9-9801-93133bf9a6cd", "", NO_PERSIST); | ||
626 | |||
627 | gSavedSettings.declareString("UIImgFocusUUID", "57bc39d1-288c-4519-aea6-6d1786a5c274", "", NO_PERSIST); | ||
628 | gSavedSettings.declareString("UIImgFocusSelectedUUID", "ab6a730e-ddfd-4982-9a32-c6de3de6d31d", "", NO_PERSIST); | ||
629 | |||
630 | gSavedSettings.declareString("UIImgCreateUUID", "7a0b1bdb-b5d9-4df5-bac2-ba230da93b5b", "", NO_PERSIST); | ||
631 | gSavedSettings.declareString("UIImgCreateSelectedUUID", "0098b015-3daf-4cfe-a72f-915369ea97c2", "", NO_PERSIST); | ||
632 | |||
633 | // Gun Tool texures | ||
634 | gSavedSettings.declareBOOL("ShowCrosshairs", TRUE, "Display crosshairs when in mouselook mode"); | ||
635 | gSavedSettings.declareString("UIImgCrosshairsUUID", "6e1a3980-bf2d-4274-8970-91e60d85fb52", "Image to use for crosshair display (UUID texture reference)"); | ||
636 | |||
637 | gSavedSettings.declareString("Language", "default", "Language specifier (for XUI)" ); | ||
638 | gSavedSettings.declareString("SystemLanguage", "en-us", "Language indicated by system settings (for XUI)" ); | ||
639 | |||
640 | ///////////////////////////////////////////////// | ||
641 | // Other booleans | ||
642 | gSavedSettings.declareBOOL("DebugPermissions", FALSE, "Log permissions for selected inventory items"); | ||
643 | |||
644 | gSavedSettings.declareBOOL("ApplyColorImmediately", TRUE, "Preview selections in color picker immediately"); | ||
645 | gSavedSettings.declareBOOL("ApplyTextureImmediately", TRUE, "Preview selections in texture picker immediately"); | ||
646 | |||
647 | gSavedSettings.declareBOOL("CreateToolKeepSelected", FALSE, "After using create tool, keep the create tool active"); | ||
648 | gSavedSettings.declareBOOL("CreateToolCopySelection", FALSE, "", NO_PERSIST); | ||
649 | gSavedSettings.declareBOOL("CreateToolCopyCenters", TRUE, "", NO_PERSIST); | ||
650 | gSavedSettings.declareBOOL("CreateToolCopyRotates", FALSE, "", NO_PERSIST); | ||
651 | |||
652 | gSavedSettings.declareBOOL("QuietSnapshotsToDisk", FALSE, "Take snapshots to disk without playing animation or sound"); | ||
653 | gSavedSettings.declareBOOL("DisableCameraConstraints", FALSE, "Disable the normal bounds put on the camera by avatar position"); | ||
654 | |||
655 | //gSavedSettings.declareBOOL("LogTimestamps", FALSE, "[NOT USED]"); | ||
656 | //gSavedSettings.declareBOOL("AgentUpdateMouseQuery", FALSE, "[NOT USED]"); | ||
657 | gSavedSettings.declareBOOL("AutoLogin", FALSE, "Login automatically using last username/password combination"); | ||
658 | gSavedSettings.declareBOOL("LoginAsGod", FALSE, "Attempt to login with god powers (Linden accounts only)"); | ||
659 | //gSavedSettings.declareBOOL("CameraFromPelvis", FALSE, "[NOT USED]"); | ||
660 | gSavedSettings.declareBOOL("CameraOffset", FALSE, "Render with camera offset from view frustum (rendering debug)"); | ||
661 | //gSavedSettings.declareBOOL("DynamicNearClip", TRUE, "[NOT USED]"); | ||
662 | gSavedSettings.declareBOOL("AnimationDebug", FALSE, "Show active animations in a bubble above avatars head"); | ||
663 | gSavedSettings.declareBOOL("DisplayAvatarAgentTarget", FALSE, "Show avatar positioning locators (animation debug)"); | ||
664 | //gSavedSettings.declareBOOL("DisplaySkeletons", TRUE, "[NOT USED]"); | ||
665 | gSavedSettings.declareBOOL("DisplayTimecode", FALSE, "Display timecode on screen"); | ||
666 | //gSavedSettings.declareBOOL("Drone", FALSE, "[NOT USED]"); | ||
667 | gSavedSettings.declareBOOL("DisableRendering", FALSE, "Disable GL rendering and GUI (load testing)"); | ||
668 | //gSavedSettings.declareBOOL("DumpPolyMeshTable", FALSE, "[NOT USED]"); | ||
669 | //gSavedSettings.declareBOOL("LimitAvatarToValidRegions", TRUE, "[NOT USED]"); | ||
670 | gSavedSettings.declareBOOL("VerboseLogs", FALSE, "Display source file and line number for each log item for debugging purposes"); | ||
671 | gSavedSettings.declareBOOL("FirstPersonAvatarVisible", FALSE, "Display avatar and attachments below neck while in mouselook"); | ||
672 | gSavedSettings.declareBOOL("ShowNearClip", FALSE, "", NO_PERSIST); | ||
673 | gSavedSettings.declareBOOL("DebugWindowProc", FALSE, "Log windows messages"); | ||
674 | gSavedSettings.declareBOOL("ShowTangentBasis", FALSE, "Render normal and binormal (debugging bump mapping)"); | ||
675 | gSavedSettings.declareBOOL("AnimateTextures", TRUE, "Enable texture animation (debug)"); | ||
676 | |||
677 | // Selection stuff | ||
678 | gSavedSettings.declareBOOL("LimitSelectDistance", TRUE, "Disallow selection of objects beyond max select distance"); | ||
679 | gSavedSettings.declareF32( "MaxSelectDistance", 64.f, "Maximum allowed selection distance (meters from avatar)"); | ||
680 | gSavedSettings.declareBOOL("LimitDragDistance", TRUE, "Limit translation of object via translate tool"); | ||
681 | gSavedSettings.declareF32( "MaxDragDistance", 48.f, "Maximum allowed translation distance in a single operation of translate tool (meters from start point)"); | ||
682 | gSavedSettings.declareBOOL( "SelectOwnedOnly", FALSE, "Select only objects you own" ); | ||
683 | gSavedSettings.declareBOOL( "SelectMovableOnly", FALSE, "Select only objects you can move" ); | ||
684 | gSavedSettings.declareBOOL( "RectangleSelectInclusive", TRUE, "Select objects that have at least one vertex inside selection rectangle" ); | ||
685 | gSavedSettings.declareBOOL( "RenderHiddenSelections", TRUE, "Show selection lines on objects that are behind other objects" ); | ||
686 | gSavedSettings.declareBOOL( "RenderLightRadius", FALSE, "Render the radius of selected lights" ); | ||
687 | |||
688 | gSavedSettings.declareF32("SelectionHighlightThickness", 0.010f, "Thickness of selection highlight line (fraction of view distance)"); | ||
689 | gSavedSettings.declareF32("SelectionHighlightUScale", 0.1f, "Scale of texture display on selection highlight line (fraction of texture size)"); | ||
690 | gSavedSettings.declareF32("SelectionHighlightVScale", 1.f, "Scale of texture display on selection highlight line (fraction of texture size)"); | ||
691 | gSavedSettings.declareF32("SelectionHighlightAlpha", 0.40f, "Opacity of selection highlight (0.0 = completely transparent, 1.0 = completely opaque)" ); | ||
692 | 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)"); | ||
693 | gSavedSettings.declareF32("SelectionHighlightUAnim", 0.f, "Rate at which texture animates along U direction in selection highlight line (fraction of texture per second)"); | ||
694 | gSavedSettings.declareF32("SelectionHighlightVAnim", 0.5f, "Rate at which texture animates along V direction in selection highlight line (fraction of texture per second)"); | ||
695 | |||
696 | gSavedSettings.declareBOOL("LogMessages", FALSE, "Log network traffic"); | ||
697 | gSavedSettings.declareBOOL("MouseSun", FALSE, "", NO_PERSIST); | ||
698 | |||
699 | gSavedSettings.declareBOOL("ShowAxes", FALSE, "Render coordinate frame at your position"); | ||
700 | |||
701 | gSavedSettings.declareBOOL("ShowMiniMap", TRUE, "Display mini map on login"); | ||
702 | gSavedSettings.declareBOOL("ShowWorldMap", FALSE, "Display world map on login"); | ||
703 | gSavedSettings.declareBOOL("ShowToolBar", TRUE, "Show toolbar at bottom of screen"); | ||
704 | gSavedSettings.declareBOOL("ShowCameraControls", FALSE, "Display camera controls on login"); | ||
705 | gSavedSettings.declareBOOL("ShowMovementControls", FALSE, "Display movement controls on login"); | ||
706 | |||
707 | gSavedSettings.declareBOOL("ShowLeaders", FALSE, "", NO_PERSIST); | ||
708 | gSavedSettings.declareBOOL("ShowDirectory", FALSE, "", NO_PERSIST); | ||
709 | |||
710 | gSavedSettings.declareBOOL("AutoLoadWebProfiles", FALSE, "Automatically load ALL profile webpages without asking first."); | ||
711 | |||
712 | gSavedSettings.declareBOOL("ShowCommunicate", FALSE, "", NO_PERSIST); | ||
713 | gSavedSettings.declareBOOL("ShowChatHistory", FALSE, "", NO_PERSIST); | ||
714 | |||
715 | #ifdef LL_RELEASE_FOR_DOWNLOAD | ||
716 | gSavedSettings.declareBOOL("ShowConsoleWindow", FALSE, "Show log in separate OS window"); | ||
717 | #else | ||
718 | gSavedSettings.declareBOOL("ShowConsoleWindow", TRUE, "Show log in separate OS window"); | ||
719 | #endif | ||
720 | |||
721 | // These are ignorable warnings | ||
722 | |||
723 | gSavedSettings.addWarning("AboutDirectX9"); | ||
724 | gSavedSettings.addWarning("AboutBadPCI"); | ||
725 | gSavedSettings.addWarning("AboutOldGraphicsDriver"); | ||
726 | gSavedSettings.addWarning("AboutPCIGraphics"); | ||
727 | gSavedSettings.addWarning("ReturnToOwner"); | ||
728 | gSavedSettings.addWarning("QuickTimeInstalled"); | ||
729 | gSavedSettings.addWarning("BrowserLaunch"); | ||
730 | gSavedSettings.addWarning("DeedObject"); | ||
731 | gSavedSettings.addWarning("NewClassified"); | ||
732 | |||
733 | // These are warnings that appear on the first experience of that condition. | ||
734 | |||
735 | LLFirstUse::addConfigVariable("FirstBalanceIncrease"); | ||
736 | LLFirstUse::addConfigVariable("FirstBalanceDecrease"); | ||
737 | LLFirstUse::addConfigVariable("FirstSit"); | ||
738 | LLFirstUse::addConfigVariable("FirstMap"); | ||
739 | LLFirstUse::addConfigVariable("FirstGoTo"); | ||
740 | LLFirstUse::addConfigVariable("FirstBuild"); | ||
741 | LLFirstUse::addConfigVariable("FirstLeftClickNoHit"); | ||
742 | LLFirstUse::addConfigVariable("FirstTeleport"); | ||
743 | LLFirstUse::addConfigVariable("FirstOverrideKeys"); | ||
744 | LLFirstUse::addConfigVariable("FirstAttach"); | ||
745 | LLFirstUse::addConfigVariable("FirstAppearance"); | ||
746 | LLFirstUse::addConfigVariable("FirstInventory"); | ||
747 | LLFirstUse::addConfigVariable("FirstSandbox"); | ||
748 | LLFirstUse::addConfigVariable("FirstFlexible"); | ||
749 | LLFirstUse::addConfigVariable("FirstDebugMenus"); | ||
750 | LLFirstUse::addConfigVariable("FirstStreamingMusic"); | ||
751 | LLFirstUse::addConfigVariable("FirstStreamingVideo"); | ||
752 | LLFirstUse::addConfigVariable("FirstSculptedPrim"); | ||
753 | LLFirstUse::addConfigVariable("FirstVoice"); | ||
754 | LLFirstUse::addConfigVariable("FirstMedia"); | ||
755 | |||
756 | gSavedSettings.declareBOOL("ShowDebugConsole", FALSE, "Show log in SL window"); | ||
757 | gSavedSettings.declareBOOL("ShowDebugStats", FALSE, "Show performance stats display"); | ||
758 | gSavedSettings.declareBOOL("OpenDebugStatBasic", TRUE, "Expand basic performance stats display"); | ||
759 | gSavedSettings.declareBOOL("OpenDebugStatAdvanced", FALSE, "Expand advanced performance stats display"); | ||
760 | gSavedSettings.declareBOOL("OpenDebugStatNet", TRUE, "Expand network stats display"); | ||
761 | gSavedSettings.declareBOOL("OpenDebugStatRender", TRUE, "Expand render stats display"); | ||
762 | gSavedSettings.declareBOOL("OpenDebugStatSim", TRUE, "Expand simulator performance stats display"); | ||
763 | gSavedSettings.declareBOOL("ShowDepthBuffer", FALSE, "Show depth buffer contents"); | ||
764 | |||
765 | gSavedSettings.declareBOOL("DebugShowTime", FALSE, "Show depth buffer contents"); | ||
766 | gSavedSettings.declareBOOL("DebugShowRenderInfo", FALSE, "Show depth buffer contents"); | ||
767 | gSavedSettings.declareBOOL("DebugShowColor", FALSE, "Show color under cursor"); | ||
768 | |||
769 | // gSavedSettings.declareBOOL("ShowHUD", TRUE); | ||
770 | //gSavedSettings.declareBOOL("ShowHUDText", TRUE, "[NOT USED]"); | ||
771 | //gSavedSettings.declareBOOL("ShowHeadlight", FALSE, "[NOT USED]"); | ||
772 | //gSavedSettings.declareBOOL("ShowLand", TRUE, "[NOT USED]"); | ||
773 | // gSavedSettings.declareBOOL("ShowMove", TRUE); | ||
774 | //gSavedSettings.declareBOOL("SurfaceDetail", TRUE, "[NOT USED]"); | ||
775 | //gSavedSettings.declareBOOL("ShowObjectBounds", FALSE, "[NOT USED]"); | ||
776 | //gSavedSettings.declareBOOL("ShowObjectEdit", FALSE, "[NOT USED]"); | ||
777 | gSavedSettings.declareBOOL("ShowObjectUpdates", FALSE, "Show when update messages are received for individual objects"); | ||
778 | //gSavedSettings.declareBOOL("ShowObjects", TRUE, "[NOT USED]"); | ||
779 | //gSavedSettings.declareBOOL("ShowRegions", FALSE, "[NOT USED]"); | ||
780 | // gSavedSettings.declareBOOL("ShowTalk", TRUE); | ||
781 | //gSavedSettings.declareBOOL("ShowTimerBar", FALSE, "[NOT USED]"); | ||
782 | //gSavedSettings.declareBOOL("ShowWater", FALSE, "[NOT USED]"); | ||
783 | gSavedSettings.declareBOOL("SpeedTest", FALSE, "Performance testing mode, no network"); | ||
784 | //gSavedSettings.declareBOOL("TempMouseLook", FALSE, "[NOT USED]"); | ||
785 | gSavedSettings.declareBOOL("UseEnergy", TRUE, "", NO_PERSIST); | ||
786 | // gSavedSettings.declareBOOL("UseFirstPersonDrag", FALSE); | ||
787 | //gSavedSettings.declareBOOL("UseLighting", TRUE, "[NOT USED]"); | ||
788 | //gSavedSettings.declareBOOL("UseWireframe", FALSE, NO_PERSIST); | ||
789 | gSavedSettings.declareBOOL("VelocityInterpolate", TRUE, "Extrapolate object motion from last packet based on received velocity"); | ||
790 | gSavedSettings.declareBOOL("PingInterpolate", FALSE, "Extrapolate object position along velocity vector based on ping delay"); | ||
791 | gSavedSettings.declareBOOL("AvatarBacklight", TRUE, "Add rim lighting to avatar rendering to approximate shininess of skin"); | ||
792 | |||
793 | // Startup stuff | ||
794 | gSavedSettings.declareF32("PrecachingDelay", 6.f, "Delay when logging in to load world before showing it (seconds)"); // seconds | ||
795 | |||
796 | // Rendering stuff | ||
797 | gSavedSettings.declareBOOL("RenderCubeMap", TRUE, "Whether we can render the cube map or not"); | ||
798 | gSavedSettings.declareF32("RenderGamma", 0.f, "Sets gamma exponent for renderer"); | ||
799 | gSavedSettings.declareBOOL("RenderWater", TRUE, "Display water" ); | ||
800 | gSavedSettings.declareF32( "RenderFarClip", 256.f, "Distance of far clip plane from camera (meters)" ); | ||
801 | gSavedSettings.declareBOOL( "RenderUseFarClip", TRUE, "If false, frustum culling will ignore far clip plane."); | ||
802 | gSavedSettings.declareF32( "RenderFogRatio", 4.0f, "Distance from camera where fog reaches maximum density (fraction or multiple of far clip distance)"); | ||
803 | gSavedSettings.declareBOOL("RenderAnisotropic", FALSE, "Render textures using anisotropic filtering" ); | ||
804 | gSavedSettings.declareBOOL("ShowXUINames", FALSE, "Display XUI Names as Tooltips" ); | ||
805 | gSavedSettings.declareS32("RenderLightingDetail", 1, "Amount of detail for lighting objects/avatars/terrain (0=sun/moon only, 1=enable local lights)" ); | ||
806 | gSavedSettings.declareS32("RenderTerrainDetail", 2, "Detail applied to terrain texturing (0 = none, 1 or 2 = full)" ); | ||
807 | gSavedSettings.declareBOOL("RenderDynamicLOD", TRUE, "Dynamically adjust level of detail."); | ||
808 | gSavedSettings.declareF32( "RenderVolumeLODFactor", 1.f, "Controls level of detail of primitives (multiplier for current screen area when calculated level of detail)" ); | ||
809 | gSavedSettings.declareF32( "RenderFlexTimeFactor", 1.f, "Controls level of detail of flexible objects (multiplier for amount of time spent processing flex objects)" ); | ||
810 | gSavedSettings.declareF32( "RenderTreeLODFactor", 0.5f, "Controls level of detail of vegetation (multiplier for current screen area when calculated level of detail)" ); | ||
811 | gSavedSettings.declareF32( "RenderAvatarLODFactor", 0.5f, "Controls level of detail of avatars (multiplier for current screen area when calculated level of detail)" ); | ||
812 | gSavedSettings.declareF32( "RenderTerrainLODFactor", 1.0f, "Controls level of detail of terrain (multiplier for current screen area when calculated level of detail)" ); | ||
813 | gSavedSettings.declareF32( "RenderBumpmapMinDistanceSquared", 100.f, "Maximum distance at which to render bumpmapped primitives (distance in meters, squared)" ); | ||
814 | gSavedSettings.declareS32( "RenderMaxPartCount", 4096, "Maximum number of particles to display on screen"); | ||
815 | gSavedSettings.declareBOOL("RenderVBOEnable", TRUE, "Use GL Vertex Buffer Objects" ); | ||
816 | gSavedSettings.declareS32("RenderMaxVBOSize", 32, "Maximum size of a vertex buffer (in KB)."); | ||
817 | gSavedSettings.declareS32("RenderReflectionRes", 64, "Reflection map resolution."); | ||
818 | //gSavedSettings.declareBOOL("RenderUseTriStrips", FALSE, "[NOT USED]"); | ||
819 | //gSavedSettings.declareBOOL("RenderCullBySize", FALSE, "[NOT USED]" ); | ||
820 | gSavedSettings.declareF32("RenderTerrainScale", 12.f, "Terrain detail texture scale"); | ||
821 | gSavedSettings.declareBOOL("VertexShaderEnable", FALSE, "Enable/disable all GLSL shaders (debug)"); | ||
822 | gSavedSettings.declareBOOL("RenderInitError", FALSE, "Error occured while initializing GL"); | ||
823 | |||
824 | gSavedSettings.declareBOOL("RenderWaterMipNormal", TRUE, "Use mip maps for water normal map."); | ||
825 | gSavedSettings.declareBOOL("RenderDynamicReflections", FALSE, "Generate a dynamic cube map for reflections (objects reflect their environment, experimental)."); | ||
826 | gSavedSettings.declareBOOL("RenderWaterReflections", FALSE, "Reflect the environment in the water."); | ||
827 | gSavedSettings.declareS32("RenderReflectionDetail", 2, "Detail of reflection render pass."); | ||
828 | gSavedSettings.declareBOOL("RenderGammaFull", TRUE, "Use fully controllable gamma correction, instead of faster, hard-coded gamma correction of 2."); | ||
829 | |||
830 | gSavedSettings.declareBOOL("RenderGlow", TRUE, "Render bloom post effect."); | ||
831 | gSavedSettings.declareF32("RenderGlowStrength", 0.35f, "Additive strength of glow"); | ||
832 | gSavedSettings.declareF32("RenderGlowWidth", 1.3f, "Glow sample size (higher = wider and softer but eventually more pixelated"); | ||
833 | gSavedSettings.declareS32("RenderGlowIterations", 2, "Number of times to iterate the glow (higher = wider and smoother but slower)"); | ||
834 | gSavedSettings.declareS32("RenderGlowResolutionPow", 9, "Glow map resolution power of two."); | ||
835 | gSavedSettings.declareF32("RenderGlowMinLuminance", 1.0f, "Min luminance intensity necessary to consider an object bright enough to automatically glow. (Gets clamped to 0 - 1.0 range)"); | ||
836 | gSavedSettings.declareF32("RenderGlowMaxExtractAlpha", 0.065f, "Max glow alpha value for brightness extraction to auto-glow."); | ||
837 | |||
838 | gSavedSettings.declareVec3("RenderGlowLumWeights", LLVector3(0.299f, 0.587f, 0.114f), "Weights for each color channel to be used in calculating luminance (should add up to 1.0)"); | ||
839 | |||
840 | gSavedSettings.declareVec3("RenderGlowWarmthWeights", LLVector3(1.0f, 0.5f, 0.7f), "Weight of each color channel used before finding the max warmth"); | ||
841 | |||
842 | gSavedSettings.declareF32("RenderGlowWarmthAmount", 0.f, "Amount of warmth extraction to use (versus luminance extraction). 0 = lum, 1.0 = warmth"); | ||
843 | |||
844 | gSavedSettings.declareS32("RenderWaterRefResolution", 512, "Water planar reflection resolution."); | ||
845 | gSavedSettings.declareBOOL("RenderObjectBump", TRUE, "Show bumpmapping on primitives"); | ||
846 | gSavedSettings.declareBOOL("RenderAvatarCloth", 1, "Controls if avatars use wavy cloth"); | ||
847 | gSavedSettings.declareBOOL("RenderAvatarVP", TRUE, "Use vertex programs to perform hardware skinning of avatar"); | ||
848 | gSavedSettings.declareS32("RenderAvatarMaxVisible", 35, "Maximum number of avatars to display at any one time"); | ||
849 | //gSavedSettings.declareBOOL("RenderForceGetTexImage", FALSE, "[NOT USED]"); | ||
850 | gSavedSettings.declareBOOL("RenderFastUI", FALSE, "[NOT USED]"); | ||
851 | gSavedSettings.declareS32("DebugBeaconLineWidth", 1, "Size of lines for Debug Beacons"); | ||
852 | |||
853 | gSavedSettings.declareBOOL("RenderCustomSettings", 0, "Do you want to set the graphics settings yourself"); | ||
854 | gSavedSettings.declareU32("RenderQualityPerformance", 1, "Which graphics settings you've chosen"); | ||
855 | |||
856 | gSavedSettings.declareBOOL("RenderUseShaderLOD", TRUE, "Whether we want to have different shaders for LOD" ); | ||
857 | gSavedSettings.declareF32("RenderShaderLODThreshold", 1.0f, "Fraction of draw distance defining the switch to a different shader LOD"); | ||
858 | gSavedSettings.declareBOOL("RenderUseShaderNearParticles", FALSE, "Whether we want to use shaders on near particles" ); | ||
859 | gSavedSettings.declareF32("RenderShaderParticleThreshold", 0.25f, "Fraction of draw distance to not use shader on particles"); | ||
860 | gSavedSettings.declareBOOL("RenderUseFBO", FALSE, "Whether we want to use GL_EXT_framebuffer_objects."); | ||
861 | gSavedSettings.declareBOOL("RenderUseImpostors", TRUE, "Whether we want to use impostors for far away avatars."); | ||
862 | gSavedSettings.declareBOOL("RenderAppleUseMultGL", FALSE, "Whether we want to use multi-threaded OpenGL on Apple hardware (requires restart of SL)."); | ||
863 | gSavedSettings.declareF32("RenderSunDynamicRange", 1.0f, "Defines what percent brighter the sun is than local point lights (1.0 = 100% brighter. Value should not be less than 0. )."); | ||
864 | gSavedSettings.declareBOOL("RenderUseCleverUI", FALSE, "Turns on the \"clever\" UI rendering optimization. It's a known performace gain (and enabled by default) on apple."); | ||
865 | |||
866 | //debug render stuff | ||
867 | gSavedSettings.declareBOOL("RenderDebugTextureBind", FALSE, "Enable texture bind performance test."); | ||
868 | |||
869 | // Snapshot params | ||
870 | gSavedSettings.declareBOOL("RenderUIInSnapshot", FALSE, "Display user interface in snapshot" ); | ||
871 | gSavedSettings.declareBOOL("RenderHUDInSnapshot", FALSE, "Display HUD attachments in snapshot" ); | ||
872 | gSavedSettings.declareBOOL("HighResSnapshot", FALSE, "Double resolution of snapshot from current window resolution" ); | ||
873 | gSavedSettings.declareBOOL("CompressSnapshotsToDisk", FALSE, "Compress snapshots saved to disk (Using JPEG 2000)" ); | ||
874 | gSavedSettings.declareBOOL("FreezeTime", FALSE, "", FALSE ); | ||
875 | gSavedSettings.declareBOOL("UseFreezeFrame", FALSE, "Freeze time when taking snapshots."); | ||
876 | gSavedSettings.declareBOOL("CloseSnapshotOnKeep", TRUE, "Close snapshot window after saving snapshot" ); | ||
877 | gSavedSettings.declareBOOL("KeepAspectForSnapshot", TRUE, "Use full window when taking snapshot, regardless of requested image size" ); | ||
878 | gSavedSettings.declareBOOL("AutoSnapshot", FALSE, "Update snapshot when camera stops moving, or any parameter changes" ); | ||
879 | gSavedSettings.declareBOOL("AdvanceSnapshot", FALSE, "Display advanced parameter settings in snaphot interface" ); | ||
880 | gSavedSettings.declareS32("LastSnapshotType", 0, "Select this as next type of snapshot to take (0 = postcard, 1 = texture, 2 = local image)" ); | ||
881 | gSavedSettings.declareS32("LastSnapshotWidth", 1024, "The width of the last snapshot, in px" ); | ||
882 | gSavedSettings.declareS32("LastSnapshotHeight", 768, "The height of the last snapshot, in px" ); | ||
883 | |||
884 | gSavedSettings.declareS32("SnapshotPostcardLastResolution", 0, "Take next postcard snapshot at this resolution" ); | ||
885 | gSavedSettings.declareS32("SnapshotTextureLastResolution", 0, "Take next texture snapshot at this resolution" ); | ||
886 | gSavedSettings.declareS32("SnapshotLocalLastResolution", 0, "Take next local snapshot at this resolution" ); | ||
887 | gSavedSettings.declareS32("SnapshotQuality", 75, "Quality setting of postcard JPEGs (0 = worst, 100 = best)" ); | ||
888 | |||
889 | gSavedSettings.declareBOOL("DisableVerticalSync", TRUE, "Update frames as fast as possible (FALSE = update frames between display scans)" ); | ||
890 | |||
891 | // Statistics stuff | ||
892 | gSavedSettings.declareBOOL("StatsAutoRun", FALSE, "Play back autopilot"); | ||
893 | gSavedSettings.declareS32("StatsNumRuns", -1, "Loop autopilot playback this number of times"); | ||
894 | //gSavedSettings.declareBOOL("StatsContinuousLoop", FALSE, "[NOT USED]"); | ||
895 | gSavedSettings.declareBOOL("StatsQuitAfterRuns", FALSE, "Quit application after this number of autopilot playback runs"); | ||
896 | gSavedSettings.declareBOOL("StatsSessionTrackFrameStats", FALSE, "Track rendering and network statistics"); | ||
897 | gSavedSettings.declareString("StatsPilotFile", "pilot.txt", "Filename for stats logging autopilot path"); | ||
898 | gSavedSettings.declareString("StatsSummaryFile", "fss.txt", "Filename for stats logging summary"); | ||
899 | gSavedSettings.declareString("StatsFile", "fs.txt", "Filename for stats logging output"); | ||
900 | |||
901 | // Image pipeline stuff | ||
902 | gSavedSettings.declareS32("TextureMemory", 0, "Amount of memory to use for textures in MB (0 = autodetect)"); // default to auto-detect | ||
903 | //gSavedSettings.declareS32("ImageRadioTexMem", 0, "Texture memory allocation (0 = <512 megabytes system RAM, 1 = >512 megabytes system RAM)"); | ||
904 | //gSavedSettings.declareS32("ImageRadioVidCardMem", 1, "Video card onboard memory (0 = 16MB, 1 = 32MB, 2 = 64MB, 3 = 128MB, 4 = 256MB, 5 = 512MB)"); | ||
905 | //gSavedSettings.declareU32("LastRAMDetected", 0, "[DO NOT MODIFY] Detected system memory (bytes)"); // used to detect RAM changes | ||
906 | gSavedSettings.declareBOOL("ImagePipelineUseHTTP", FALSE, "If TRUE use HTTP GET to fetch textures from the server"); | ||
907 | |||
908 | // Image compression | ||
909 | gSavedSettings.declareBOOL("LosslessJ2CUpload", FALSE, "Use lossless compression for small image uploads"); | ||
910 | |||
911 | // Threading | ||
912 | gSavedSettings.declareBOOL("RunMultipleThreads", FALSE, "If TRUE keep background threads active during render"); | ||
913 | |||
914 | // Cooperative Multitasking | ||
915 | gSavedSettings.declareS32("BackgroundYieldTime", 40, "Amount of time to yield every frame to other applications when SL is not the foreground window (milliseconds)"); | ||
916 | |||
917 | // Camera control | ||
918 | gSavedSettings.declareBOOL("AutoPilotLocksCamera", FALSE, "Keep camera position locked when avatar walks to selected position"); | ||
919 | //gSavedSettings.declareBOOL("AvatarLooksAtCamera", TRUE, "[NOT USED]"); | ||
920 | //gSavedSettings.declareF32("FlyHeightOffGround", 1.f, "[NOT USED]"); | ||
921 | gSavedSettings.declareF32("DynamicCameraStrength", 2.f, "Amount camera lags behind avatar motion (0 = none, 30 = avatar velocity)"); | ||
922 | |||
923 | gSavedSettings.declareVec3("CameraOffsetBuild", LLVector3(-6.0f, 0, 6.0f), "Default camera position relative to focus point when entering build mode"); | ||
924 | gSavedSettings.declareVec3("CameraOffsetDefault", LLVector3(-3.0f, 0, 0.75f), "Default camera offset from avatar"); | ||
925 | //gSavedSettings.declareVec3("CameraOffsetDefault", LLVector3(-3.0f, 0, 1.5f)); | ||
926 | |||
927 | //gSavedSettings.declareVec3("FocusOffsetBuild", LLVector3(4, 0, 0), "[NOT USED]"); | ||
928 | gSavedSettings.declareVec3("FocusOffsetDefault", LLVector3(1, 0, 1), "Default focus point offset relative to avatar (x-axis is forward)"); | ||
929 | gSavedSettings.declareBOOL("TrackFocusObject", TRUE, "Camera tracks last object zoomed on"); | ||
930 | gSavedSettings.declareBOOL("CameraMouseWheelZoom", TRUE, "Camera zooms in and out with mousewheel"); | ||
931 | |||
932 | gSavedSettings.declareVec3d("FocusPosOnLogout", LLVector3d(0, 0, 0), "Camera focus point when last logged out (global coordinates)"); | ||
933 | gSavedSettings.declareVec3d("CameraPosOnLogout", LLVector3d(0, 0, 0), "Camera position when last logged out (global coordinates)"); | ||
934 | |||
935 | // Terrain coloring | ||
936 | // JC 8/28/2002 - Adjusted to make the beta farm look good, with | ||
937 | // 20 meter water height. Talk with me before changing these. | ||
938 | gSavedSettings.declareF32("TerrainColorStartHeight", 20.f, "Starting altitude for terrain texturing (meters)"); // -1 to 1 | ||
939 | gSavedSettings.declareF32("TerrainColorHeightRange", 60.f, "Altitude range over which a given terrain texture has effect (meters)"); // max land height | ||
940 | |||
941 | // Avatar stuff | ||
942 | gSavedSettings.declareF32("PitchFromMousePosition", 90.f, "Vertical range over which avatar head tracks mouse position (degrees of head rotation from top of window to bottom)"); | ||
943 | gSavedSettings.declareF32("YawFromMousePosition", 90.f, "Horizontal range over which avatar head tracks mouse position (degrees of head rotation from left of window to right)"); | ||
944 | gSavedSettings.declareF32("ZoomTime", 0.4f, "Time of transition between different camera modes (seconds)"); | ||
945 | gSavedSettings.declareS32("AvatarCompositeLimit", 5, "Maximum number of avatars to display appearance changes on the fly"); | ||
946 | |||
947 | // Default throttle | ||
948 | // These must also be changed in llviewerthrottle.h | ||
949 | // Currently matches BW_PRESET_300 | ||
950 | gSavedSettings.declareF32("ThrottleBandwidthKBPS", 500.f, "Maximum allowable downstream bandwidth (kilo bits per second)"); | ||
951 | |||
952 | gSavedSettings.declareBOOL("ConnectionPortEnabled", FALSE, "Use the custom connection port?"); | ||
953 | gSavedSettings.declareU32("ConnectionPort", 13000, "Custom connection port number"); | ||
954 | |||
955 | // File xfer throttle | ||
956 | gSavedSettings.declareF32("XferThrottle", 150000.f, "Maximum allowable downstream bandwidth for asset transfers (bits per second)"); | ||
957 | |||
958 | //gSavedSettings.declareS32("BWRadio", 0, "[NOT USED]"); | ||
959 | |||
960 | gSavedSettings.declareRect("ChatterboxRect", LLRect(0, 400, 350, 0), "Rectangle for chatterbox window"); | ||
961 | gSavedSettings.declareRect("FloaterActiveSpeakersRect", LLRect(0, 300, 250, 0), "Rectangle for active speakers window"); | ||
962 | |||
963 | // Avatar customizing floaters | ||
964 | gSavedSettings.declareRect("FloaterCustomizeAppearanceRect", LLRect(0, 540, 494, 0), "Rectangle for avatar customization window"); | ||
965 | |||
966 | // Build options floater | ||
967 | gSavedSettings.declareRect("FloaterBuildOptionsRect", LLRect(0,0,0,0), "Rectangle for build options window."); | ||
968 | |||
969 | gSavedSettings.declareRect("FloaterJoystickRect", LLRect(0,0,0,0), "Rectangle for joystick controls window."); | ||
970 | |||
971 | // Map floater | ||
972 | gSavedSettings.declareRect("FloaterMiniMapRect", LLRect(0, 225, 200, 0), "Rectangle for world map"); | ||
973 | |||
974 | //Lag-o-Meter floater | ||
975 | gSavedSettings.declareRect("FloaterLagMeter", LLRect(0, 142, 350, 0), "Rectangle for lag meter"); | ||
976 | gSavedSettings.declareBOOL("LagMeterShrunk", FALSE, "Last large/small state for lag meter"); | ||
977 | |||
978 | gSavedSettings.declareF32("MapScale", 128.f, "World map zoom level (pixels per region)"); | ||
979 | |||
980 | gSavedSettings.declareF32("MiniMapScale", 128.f, "Miniature world map zoom levle (pixels per region)"); | ||
981 | |||
982 | gSavedSettings.declareBOOL("MiniMapRotate", TRUE, "Rotate miniature world map to avatar direction"); | ||
983 | |||
984 | gSavedSettings.declareString("UIImgBtnPanUpOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST); | ||
985 | gSavedSettings.declareString("UIImgBtnPanUpInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST); | ||
986 | gSavedSettings.declareString("UIImgBtnPanDownOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST); | ||
987 | gSavedSettings.declareString("UIImgBtnPanDownInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST); | ||
988 | gSavedSettings.declareString("UIImgBtnPanLeftOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST); | ||
989 | gSavedSettings.declareString("UIImgBtnPanLeftInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST); | ||
990 | gSavedSettings.declareString("UIImgBtnPanRightOutUUID", "47a8c844-cd2a-4b1a-be01-df8b1612fe5d", "", NO_PERSIST); | ||
991 | gSavedSettings.declareString("UIImgBtnPanRightInUUID", "e5821134-23c0-4bd0-af06-7fa95b9fb01a", "", NO_PERSIST); | ||
992 | |||
993 | // Talk panel | ||
994 | gSavedSettings.declareRect("FloaterIMRect", LLRect(0, 10*16, 500, 0), "Rectangle for IM window"); | ||
995 | |||
996 | // Chat floater | ||
997 | // Rectangle should almost fill the bottom of the screen on 800x600 | ||
998 | // Note that the saved rect size is the size with history shown. | ||
999 | gSavedSettings.declareRect("FloaterChatRect", LLRect( 0, 10*16 + 12, 500, 0 ), "Rectangle for chat history"); | ||
1000 | gSavedSettings.declareRect("FloaterContactsRect", LLRect( 0, 390, 395, 0 ), "Rectangle for chat history"); | ||
1001 | gSavedSettings.declareRect("FloaterMuteRect3", LLRect( 0, 300, 300, 0), "Rectangle for mute window"); | ||
1002 | 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."); | ||
1003 | gSavedPerAccountSettings.declareString("InstantMessageLogPath", "", "Path to your log files."); | ||
1004 | gSavedPerAccountSettings.declareBOOL("LogInstantMessages", FALSE, "Log Instant Messages"); | ||
1005 | gSavedPerAccountSettings.declareBOOL("LogChat", FALSE, "Log Chat"); | ||
1006 | gSavedPerAccountSettings.declareBOOL("LogShowHistory", FALSE, "Log Show History"); | ||
1007 | gSavedPerAccountSettings.declareBOOL("IMLogTimestamp", FALSE, "Log Timestamp of Instant Messages"); | ||
1008 | gSavedPerAccountSettings.declareBOOL("LogChatTimestamp", FALSE, "Log Timestamp of Chat"); | ||
1009 | gSavedPerAccountSettings.declareBOOL("LogChatIM", FALSE, "Log Incoming Instant Messages with Chat"); | ||
1010 | gSavedPerAccountSettings.declareBOOL("LogTimestampDate", FALSE, "Include Date with Timestamp"); | ||
1011 | |||
1012 | // Inventory | ||
1013 | gSavedSettings.declareRect("FloaterInventoryRect", LLRect(0, 400, 300, 0), "Rectangle for inventory window" ); | ||
1014 | |||
1015 | // properties, only width and height is used. | ||
1016 | gSavedSettings.declareRect("PropertiesRect", LLRect(0, 320, 350, 0), "Rectangle for inventory item properties window"); | ||
1017 | |||
1018 | // Previews - only width and height are used | ||
1019 | gSavedSettings.declareRect("PreviewTextureRect", LLRect(0, 400, 400, 0), "Rectangle for texture preview window" ); // Only width and height are used | ||
1020 | gSavedSettings.declareRect("PreviewScriptRect", LLRect(0, 550, 500, 0), "Rectangle for script preview window" ); // Only width and height are used | ||
1021 | gSavedSettings.declareRect("LSLHelpRect", LLRect(0, 400, 400, 0), "Rectangle for LSL help window" ); // Only width and height are used | ||
1022 | gSavedSettings.declareRect("PreviewLandmarkRect", LLRect(0, 90, 300, 0), "Rectangle for landmark preview window" ); // Only width and height are used | ||
1023 | gSavedSettings.declareRect("PreviewURLRect", LLRect(0, 90, 300, 0), "Rectangle for URL preview window" ); // Only width and height are used | ||
1024 | gSavedSettings.declareRect("PreviewEventRect", LLRect(0, 530, 420, 0), "Rectangle for Event preview window" ); // Only width and height are used | ||
1025 | gSavedSettings.declareRect("PreviewClassifiedRect", LLRect(0, 530, 420, 0), "Rectangle for URL preview window" ); // Only width and height are used | ||
1026 | gSavedSettings.declareRect("PreviewSoundRect", LLRect(0, 85, 300, 0), "Rectangle for sound preview window" ); // Only width and height are used | ||
1027 | gSavedSettings.declareRect("PreviewObjectRect", LLRect(0, 85, 300, 0), "Rectangle for object preview window" ); // Only width and height are used | ||
1028 | gSavedSettings.declareRect("PreviewWearableRect", LLRect(0, 85, 300, 0), "Rectangle for wearable preview window" ); // Only width and height are used | ||
1029 | gSavedSettings.declareRect("PreviewAnimRect", LLRect(0, 85, 300, 0), "Rectangle for animation preview window" ); // Only width and height are used | ||
1030 | // permissions manager | ||
1031 | gSavedSettings.declareRect("PermissionsManagerRect", LLRect(0, 85, 300, 0), "Rectangle for permissions manager window" ); // Only width and height are used | ||
1032 | |||
1033 | // Land floater - force to top left | ||
1034 | //gSavedSettings.declareRect("FloaterLandRect3", LLRect(0, 370, 340, 0)); | ||
1035 | //gSavedSettings.declareRect("FloaterLandRect4", LLRect(0, 370, 400, 0), "Rectangle for About Land window"); // deprecated | ||
1036 | gSavedSettings.declareRect("FloaterLandRect5", LLRect(0, 370, 460, 0), "Rectangle for About Land window"); | ||
1037 | |||
1038 | // Texture Picker | ||
1039 | gSavedSettings.declareRect("TexturePickerRect", LLRect(0, 290, 350, 0), "Rectangle for texture picker" ); // Only width and height are used | ||
1040 | gSavedSettings.declareBOOL("TexturePickerShowFolders", TRUE, "Show folders with no texures in texture picker"); | ||
1041 | |||
1042 | gSavedSettings.declareRect("FloaterGestureRect", LLRect(0, 480, 320, 0), "Rectangle for gestures window"); | ||
1043 | gSavedSettings.declareRect("FloaterClothingRect", LLRect(0, 480, 320, 0), "Rectangle for clothing window"); | ||
1044 | gSavedSettings.declareBOOL("ClothingBtnState", FALSE, "", NO_PERSIST); | ||
1045 | gSavedSettings.declareRect("FloaterHTMLRect", LLRect(0, 500, 700, 0), "Rectangle for HTML window"); | ||
1046 | |||
1047 | gSavedSettings.declareRect("FloaterRegionInfo", LLRect(0, 512, 480, 0), "Rectangle for region info window"); | ||
1048 | |||
1049 | // Landmark Picker | ||
1050 | gSavedSettings.declareRect("FloaterLandmarkRect", LLRect(0, 290, 310, 0), "Rectangle for landmark picker" ); // Only width and height are used | ||
1051 | |||
1052 | // editors | ||
1053 | // Only width and height are used | ||
1054 | gSavedSettings.declareRect("NotecardEditorRect", LLRect(0, 400, 400, 0), "Rectangle for notecard editor"); | ||
1055 | |||
1056 | // recompile everything dialog | ||
1057 | gSavedSettings.declareRect("CompileOutputRect", LLRect(0, 400, 300, 0), "Rectangle for script Recompile Everything output window"); | ||
1058 | |||
1059 | // L$ | ||
1060 | gSavedSettings.declareRect("FloaterPayRectB", LLRect(0, 150, 400, 0), "Rectangle for pay window"); | ||
1061 | |||
1062 | // Buy | ||
1063 | gSavedSettings.declareRect("FloaterBuyRect", LLRect(0, 250, 300, 0), "Rectangle for buy window"); | ||
1064 | |||
1065 | // Buy Contents | ||
1066 | gSavedSettings.declareRect("FloaterBuyContentsRect", LLRect(0, 250, 300, 0), "Rectangle for Buy Contents window"); | ||
1067 | |||
1068 | // Open Contents | ||
1069 | gSavedSettings.declareRect("FloaterOpenObjectRect", LLRect(0, 350, 300, 0), "Rectangle for Open Object window"); | ||
1070 | |||
1071 | // the about box | ||
1072 | gSavedSettings.declareRect("FloaterMediaRect", LLRect(16,650,600,128), "Rectangle for media browser window"); | ||
1073 | |||
1074 | // the about box | ||
1075 | gSavedSettings.declareRect("FloaterAboutRect", LLRect(0, 440, 470, 0), "Rectangle for About window"); | ||
1076 | |||
1077 | // the mean box | ||
1078 | gSavedSettings.declareRect("FloaterBumpRect", LLRect(0, 180, 400, 0), "Rectangle for Bumps/Hits window"); | ||
1079 | |||
1080 | // the inspect box | ||
1081 | gSavedSettings.declareRect("FloaterInspectRect", LLRect(0, 400, 400, 0), "Rectangle for Object Inspect window"); | ||
1082 | |||
1083 | // World map. If 0,0,0,0, will attempt to size to 80% of fullscreen. | ||
1084 | gSavedSettings.declareRect("FloaterWorldMapRect2", | ||
1085 | LLRect(0,0,0,0), "Rectangle for world map window"); | ||
1086 | |||
1087 | // Find dialog. | ||
1088 | gSavedSettings.declareRect("FloaterFindRect2", LLRect(0, 570, 780, 0), "Rectangle for Find window"); | ||
1089 | |||
1090 | // Talk To dialog, force to top of screen | ||
1091 | //gSavedSettings.declareRect("FloaterTalkToRect", LLRect(0, 130, 330, 0), "[NOT USED]"); | ||
1092 | // Script error/debug dialog, force to top of screen | ||
1093 | gSavedSettings.declareRect("FloaterScriptDebugRect", LLRect(0, 130, 450, 0), "Rectangle for Script Error/Debug window"); | ||
1094 | |||
1095 | // HUD Console | ||
1096 | gSavedSettings.declareS32("ConsoleBufferSize", 40, "Size of chat console history (lines of chat)"); | ||
1097 | |||
1098 | //gSavedSettings.declareString("UIImgCompassTextureUUID", "79156764-de98-4815-9d50-b10a7646bcf4", "[NOT USED]"); | ||
1099 | |||
1100 | // Script Panel | ||
1101 | //gSavedSettings.declareRect("ScriptPanelRect", LLRect(250, 175 + 400, 250 + 400, 175), "[NOT USED]"); | ||
1102 | |||
1103 | // volume floater | ||
1104 | gSavedSettings.declareRect("FloaterAudioVolumeRect", LLRect(0, 440, 470, 0), "Rectangle for Audio Volume window"); | ||
1105 | |||
1106 | // Radio button sets | ||
1107 | gSavedSettings.declareU32("AvatarSex", 0, "", NO_PERSIST); | ||
1108 | |||
1109 | // Radio button sets | ||
1110 | gSavedSettings.declareS32("RadioLandBrushAction", 0, "Last selected land modification operation (0 = flatten, 1 = raise, 2 = lower, 3 = smooth, 4 = roughen, 5 = revert)"); | ||
1111 | gSavedSettings.declareS32("RadioLandBrushSize", 0, "Size of land modification brush (0 = small, 1 = medium, 2 = large)"); | ||
1112 | |||
1113 | // Build Options Panel | ||
1114 | gSavedSettings.declareBOOL("SnapEnabled", TRUE, "Enable snapping to grid"); | ||
1115 | gSavedSettings.declareBOOL("SnapToMouseCursor", FALSE, "When snapping to grid, center object on nearest grid point to mouse cursor"); | ||
1116 | gSavedSettings.declareF32 ("GridResolution", 0.5f, "Size of single grid step (meters)"); | ||
1117 | gSavedSettings.declareF32 ("GridDrawSize", 12.0f, "Visible extent of 2D snap grid (meters)"); | ||
1118 | gSavedSettings.declareBOOL("GridSubUnit", FALSE, "Display fractional grid steps, relative to grid size"); | ||
1119 | gSavedSettings.declareF32("GridOpacity", 0.7f, "Grid line opacity (0.0 = completely transparent, 1.0 = completely opaque)"); | ||
1120 | gSavedSettings.declareBOOL("GridCrossSections", FALSE, "Highlight cross sections of prims with grid manipulation plane."); | ||
1121 | |||
1122 | gSavedSettings.declareS32("GridMode", 0, "Snap grid reference frame (0 = world, 1 = local, 2 = reference object)"); | ||
1123 | //gSavedSettings.declareBOOL("GridIsLocal", FALSE, "[NOT USED]"); | ||
1124 | gSavedSettings.declareS32("GridSubdivision", 32, "Maximum number of times to divide single snap grid unit when GridSubUnit is true"); | ||
1125 | gSavedSettings.declareF32 ("RotationStep", 1.0f, "All rotations via rotation tool are constrained to multiples of this unit (degrees)"); | ||
1126 | |||
1127 | // Saved state for window | ||
1128 | gSavedSettings.declareBOOL("WindowMaximized", TRUE, "SL viewer window maximized on login"); | ||
1129 | gSavedSettings.declareS32("WindowHeight", WINDOW_HEIGHT, "SL viewer window height"); | ||
1130 | gSavedSettings.declareS32("WindowWidth", WINDOW_WIDTH, "SL viewer window width"); | ||
1131 | gSavedSettings.declareS32("WindowX", 10, "X coordinate of lower left corner of SL viewer window, relative to primary display (pixels)"); | ||
1132 | gSavedSettings.declareS32("WindowY", 10, "Y coordinate of lower left corner of SL viewer window, relative to primary display (pixels)"); | ||
1133 | |||
1134 | // Fullscreen menu options | ||
1135 | gSavedSettings.declareBOOL("FullScreen", FALSE, "Run SL in fullscreen mode"); | ||
1136 | //#if LL_DARWIN | ||
1137 | // gSavedSettings.declareBOOL("FullScreen", FALSE); | ||
1138 | //#else | ||
1139 | // gSavedSettings.declareBOOL("FullScreen", TRUE); | ||
1140 | //#endif | ||
1141 | |||
1142 | // Fullscreen actual settings | ||
1143 | gSavedSettings.declareS32("FullScreenWidth", 1024, "Fullscreen resolution in width"); | ||
1144 | gSavedSettings.declareS32("FullScreenHeight", 768, "Fullscreen resolution in height"); | ||
1145 | gSavedSettings.declareF32("FullScreenAspectRatio", 1.3333f, "Aspect ratio of fullscreen display (width / height)"); | ||
1146 | gSavedSettings.declareBOOL("FullScreenAutoDetectAspectRatio", TRUE, "Automatically detect proper aspect ratio for fullscreen display"); | ||
1147 | |||
1148 | //resolution divisor | ||
1149 | gSavedSettings.declareU32("RenderResolutionDivisor", 1, "Divisor for rendering 3D scene at reduced resolution."); | ||
1150 | |||
1151 | // UI general settigns | ||
1152 | gSavedSettings.declareBOOL("TabToTextFieldsOnly", FALSE, "TAB key takes you to next text entry field, instead of next widget"); | ||
1153 | gSavedSettings.declareF32("UIScaleFactor", 1.f, "Size of UI relative to default layout on 1024x768 screen"); | ||
1154 | gSavedSettings.declareBOOL("UIAutoScale", TRUE, "Keep UI scale consistent across different resolutions"); | ||
1155 | |||
1156 | // Login | ||
1157 | gSavedSettings.declareString("FirstName", "", "Login first name"); | ||
1158 | gSavedSettings.declareString("LastName", "", "Login last name"); | ||
1159 | gSavedPerAccountSettings.declareU32("LastLogoff", 0, "Last logoff"); | ||
1160 | |||
1161 | // Legacy password storage. Now stored in separate file. | ||
1162 | gSavedSettings.declareString("Marker", "", "[NOT USED]"); | ||
1163 | |||
1164 | gSavedSettings.declareBOOL("RememberPassword", TRUE, "Keep password (in encrypted form) for next login"); | ||
1165 | gSavedSettings.declareBOOL("LoginLastLocation", TRUE, "Login at same location you last logged out"); | ||
1166 | gSavedSettings.declareBOOL("ShowStartLocation", FALSE, "Display starting location menu on login screen"); | ||
1167 | gSavedSettings.declareBOOL("FlyingAtExit", FALSE, "Was flying when last logged out, so fly when logging in"); | ||
1168 | gSavedSettings.declareBOOL("ForceShowGrid", FALSE, "Always show grid dropdown on login screen"); | ||
1169 | |||
1170 | // gSavedSettings.declareString("AvatarTexture", "be20de2d-7812-4e0e-80f2-33aadf185a9f"); | ||
1171 | gSavedSettings.declareU32("RegionTextureSize", 256, "Terrain texture dimensions (power of 2)"); | ||
1172 | |||
1173 | // Selection option | ||
1174 | gSavedSettings.declareBOOL("EditLinkedParts", FALSE, "Select individual parts of linked objects", NO_PERSIST); | ||
1175 | |||
1176 | // Selection beam | ||
1177 | gSavedSettings.declareBOOL("ShowSelectionBeam", TRUE, "Show selection particle beam when selecting or interacting with objects."); | ||
1178 | |||
1179 | // Scale manipulator | ||
1180 | gSavedSettings.declareBOOL("ScaleUniform", FALSE, "Scale selected objects evenly about center of selection"); | ||
1181 | gSavedSettings.declareBOOL("ScaleShowAxes", FALSE, "Show indicator of selected scale axis when scaling"); | ||
1182 | gSavedSettings.declareBOOL("ScaleStretchTextures", TRUE, "Stretch textures along with object when scaling"); | ||
1183 | |||
1184 | //------------------------------------------------------------------------ | ||
1185 | // Help viewer | ||
1186 | //------------------------------------------------------------------------ | ||
1187 | gSavedSettings.declareString("HelpHomeURL", "help/index.html", "URL of initial help page"); | ||
1188 | gSavedSettings.declareString("HelpLastVisitedURL", "help/index.html", "URL of last help page, will be shown next time help is accessed"); | ||
1189 | |||
1190 | // HTML dialog (general purpose) | ||
1191 | gSavedSettings.declareRect("HtmlFloaterRect", LLRect(16,650,600,128), "Rectangle for HTML Floater window"); | ||
1192 | |||
1193 | // HTML sim release message floater | ||
1194 | gSavedSettings.declareRect("HtmlReleaseMessage", LLRect(46,520,400,128), "Rectangle for HTML Release Message Floater window"); | ||
1195 | |||
1196 | |||
1197 | // HTML help | ||
1198 | gSavedSettings.declareString("HtmlHelpLastPage", "", "Last URL visited via help system"); | ||
1199 | gSavedSettings.declareRect("HtmlHelpRect", LLRect(16,650,600,128), "Rectangle for HTML help window"); | ||
1200 | gSavedSettings.declareRect("HtmlFindRect", LLRect(16,650,600,128), "Rectangle for HTML find window"); | ||
1201 | |||
1202 | // Audio | ||
1203 | gSavedSettings.declareBOOL("ShowVolumeSettingsPopup", FALSE, "Show individual volume slider for voice, sound effects, etc"); | ||
1204 | gSavedSettings.declareF32("AudioLevelMaster", 1.0f, "Master audio level, or overall volume"); | ||
1205 | gSavedSettings.declareF32("AudioLevelSFX", 1.0f, "Audio level of in-world sound effects"); | ||
1206 | gSavedSettings.declareF32("AudioLevelAmbient",0.5f, "Audio level of environment sounds"); | ||
1207 | gSavedSettings.declareF32("AudioLevelUI", 0.5f, "Audio level of UI sound effects"); | ||
1208 | gSavedSettings.declareF32("AudioLevelMusic", 1.0f, "Audio level of streaming music"); | ||
1209 | gSavedSettings.declareF32("AudioLevelVoice", 0.5f, "Audio level of voice chat"); | ||
1210 | gSavedSettings.declareF32("AudioLevelMedia", 1.0f, "Audio level of Quicktime movies"); | ||
1211 | gSavedSettings.declareF32("AudioLevelMic", 1.0f, "Audio level of microphone input"); | ||
1212 | |||
1213 | // gSavedSettings.declareF32("MediaAudioVolume", 1.0f, "Audio level of Quicktime movies"); // removed | ||
1214 | |||
1215 | gSavedSettings.declareF32("AudioLevelDistance", 1.0f, "Scale factor for audio engine (multiple of world scale, 2.0 = audio falls off twice as fast)"); | ||
1216 | 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)"); | ||
1217 | gSavedSettings.declareF32("AudioLevelRolloff", 1.0f, "Controls the distance-based dropoff of audio volume (fraction or multiple of default audio rolloff)"); | ||
1218 | |||
1219 | gSavedSettings.declareBOOL("AudioStreamingMusic", FALSE, "Enable streaming audio"); | ||
1220 | gSavedSettings.declareBOOL("AudioStreamingVideo", FALSE, "Enable streaming video"); | ||
1221 | gSavedSettings.declareBOOL("AutoMimeDiscovery", FALSE, "Enable viewer mime type discovery of media URLs"); | ||
1222 | |||
1223 | // Media | ||
1224 | gSavedSettings.declareBOOL("ParcelMediaAutoPlayEnable", FALSE, "Auto play parcel media when available"); | ||
1225 | |||
1226 | //UI Sounds | ||
1227 | |||
1228 | gSavedSettings.declareBOOL("UISndDebugSpamToggle", FALSE, "Log UI sound effects as they are played"); | ||
1229 | |||
1230 | gSavedSettings.declareF32("UISndHealthReductionThreshold", 10.f, "Amount of health reduction required to trigger \"pain\" sound"); | ||
1231 | gSavedSettings.declareF32("UISndMoneyChangeThreshold", 50.f, "Amount of change in L$ balance required to trigger \"money\" sound"); | ||
1232 | |||
1233 | gSavedSettings.declareString("UISndAlert", "ed124764-705d-d497-167a-182cd9fa2e6c", "Sound file for alerts (uuid for sound asset)"); | ||
1234 | //gSavedSettings.declareString("UISndAppearanceAnimate", "6cf2be26-90cb-2669-a599-f5ab7698225f", "[NOT USED]"); | ||
1235 | gSavedSettings.declareString("UISndBadKeystroke", "2ca849ba-2885-4bc3-90ef-d4987a5b983a", "Sound file for invalid keystroke (uuid for sound asset)"); | ||
1236 | //gSavedSettings.declareString("UISndChatFromObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1237 | gSavedSettings.declareString("UISndClick", "4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6", "Sound file for mouse click (uuid for sound asset)"); | ||
1238 | gSavedSettings.declareString("UISndClickRelease", "4c8c3c77-de8d-bde2-b9b8-32635e0fd4a6", "Sound file for mouse button release (uuid for sound asset)"); | ||
1239 | // gSavedSettings.declareString("UISndError", "cb58f920-5b52-8a49-b81c-e532adbbe6f1", "Sound file for UI error (uuid for sound asset)"); | ||
1240 | gSavedSettings.declareString("UISndHealthReductionF", "219c5d93-6c09-31c5-fb3f-c5fe7495c115", "Sound file for female pain (uuid for sound asset)"); | ||
1241 | gSavedSettings.declareString("UISndHealthReductionM", "e057c244-5768-1056-c37e-1537454eeb62", "Sound file for male pain (uuid for sound asset)"); | ||
1242 | //gSavedSettings.declareString("UISndIncomingChat", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1243 | //gSavedSettings.declareString("UISndIncomingIM", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1244 | //gSavedSettings.declareString("UISndInvApplyToObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1245 | gSavedSettings.declareString("UISndInvalidOp", "4174f859-0d3d-c517-c424-72923dc21f65", "Sound file for invalid operations (uuid for sound asset)"); | ||
1246 | //gSavedSettings.declareString("UISndInventoryCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1247 | gSavedSettings.declareString("UISndMoneyChangeDown", "104974e3-dfda-428b-99ee-b0d4e748d3a3", "Sound file for L$ balance increase (uuid for sound asset)"); | ||
1248 | gSavedSettings.declareString("UISndMoneyChangeUp", "77a018af-098e-c037-51a6-178f05877c6f", "Sound file for L$ balance decrease(uuid for sound asset)"); | ||
1249 | gSavedSettings.declareString("UISndNewIncomingIMSession", "67cc2844-00f3-2b3c-b991-6418d01e1bb7", "Sound file for new instant message session(uuid for sound asset)"); | ||
1250 | //gSavedSettings.declareString("UISndObjectCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1251 | gSavedSettings.declareString("UISndObjectCreate", "f4a0660f-5446-dea2-80b7-6482a082803c", "Sound file for object creation (uuid for sound asset)"); | ||
1252 | gSavedSettings.declareString("UISndObjectDelete", "0cb7b00a-4c10-6948-84de-a93c09af2ba9", "Sound file for object deletion (uuid for sound asset)"); | ||
1253 | gSavedSettings.declareString("UISndObjectRezIn", "3c8fc726-1fd6-862d-fa01-16c5b2568db6", "Sound file for rezzing objects (uuid for sound asset)"); | ||
1254 | gSavedSettings.declareString("UISndObjectRezOut", "00000000-0000-0000-0000-000000000000", "Sound file for derezzing objects (uuid for sound asset)"); | ||
1255 | gSavedSettings.declareString("UISndPieMenuAppear", "8eaed61f-92ff-6485-de83-4dcc938a478e", "Sound file for opening pie menu (uuid for sound asset)"); | ||
1256 | gSavedSettings.declareString("UISndPieMenuHide", "00000000-0000-0000-0000-000000000000", "Sound file for closing pie menu (uuid for sound asset)"); | ||
1257 | gSavedSettings.declareString("UISndPieMenuSliceHighlight0", "d9f73cf8-17b4-6f7a-1565-7951226c305d", "Sound file for selecting pie menu item 0 (uuid for sound asset)"); | ||
1258 | gSavedSettings.declareString("UISndPieMenuSliceHighlight1", "f6ba9816-dcaf-f755-7b67-51b31b6233e5", "Sound file for selecting pie menu item 1 (uuid for sound asset)"); | ||
1259 | gSavedSettings.declareString("UISndPieMenuSliceHighlight2", "7aff2265-d05b-8b72-63c7-dbf96dc2f21f", "Sound file for selecting pie menu item 2 (uuid for sound asset)"); | ||
1260 | gSavedSettings.declareString("UISndPieMenuSliceHighlight3", "09b2184e-8601-44e2-afbb-ce37434b8ba1", "Sound file for selecting pie menu item 3 (uuid for sound asset)"); | ||
1261 | gSavedSettings.declareString("UISndPieMenuSliceHighlight4", "bbe4c7fc-7044-b05e-7b89-36924a67593c", "Sound file for selecting pie menu item 4 (uuid for sound asset)"); | ||
1262 | gSavedSettings.declareString("UISndPieMenuSliceHighlight5", "d166039b-b4f5-c2ec-4911-c85c727b016c", "Sound file for selecting pie menu item 5 (uuid for sound asset)"); | ||
1263 | gSavedSettings.declareString("UISndPieMenuSliceHighlight6", "242af82b-43c2-9a3b-e108-3b0c7e384981", "Sound file for selecting pie menu item 6 (uuid for sound asset)"); | ||
1264 | gSavedSettings.declareString("UISndPieMenuSliceHighlight7", "c1f334fb-a5be-8fe7-22b3-29631c21cf0b", "Sound file for selecting pie menu item 7 (uuid for sound asset)"); | ||
1265 | gSavedSettings.declareString("UISndSnapshot", "3d09f582-3851-c0e0-f5ba-277ac5c73fb4", "Sound file for taking a snapshot (uuid for sound asset)"); | ||
1266 | //gSavedSettings.declareString("UISndStartAutopilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1267 | //gSavedSettings.declareString("UISndStartFollowpilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1268 | gSavedSettings.declareString("UISndStartIM", "c825dfbc-9827-7e02-6507-3713d18916c1", "Sound file for starting a new IM session (uuid for sound asset)"); | ||
1269 | //gSavedSettings.declareString("UISndStopAutopilot", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1270 | gSavedSettings.declareString("UISndTeleportOut", "d7a9a565-a013-2a69-797d-5332baa1a947", "Sound file for teleporting (uuid for sound asset)"); | ||
1271 | //gSavedSettings.declareString("UISndTextureApplyToObject", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1272 | //gSavedSettings.declareString("UISndTextureCopyToInv", "00000000-0000-0000-0000-000000000000", "[NOT USED]"); | ||
1273 | gSavedSettings.declareString("UISndTyping", "5e191c7b-8996-9ced-a177-b2ac32bfea06", "Sound file for starting to type a chat message (uuid for sound asset)"); | ||
1274 | // gSavedSettings.declareString("UISndWarning", "449bc80c-91b6-6365-8fd1-95bd91016624", "Sound file for alerts (uuid for sound asset)"); | ||
1275 | gSavedSettings.declareString("UISndWindowClose", "2c346eda-b60c-ab33-1119-b8941916a499", "Sound file for closing a window (uuid for sound asset)"); | ||
1276 | gSavedSettings.declareString("UISndWindowOpen", "c80260ba-41fd-8a46-768a-6bf236360e3a", "Sound file for opening a window (uuid for sound asset)"); | ||
1277 | |||
1278 | // Sky params | ||
1279 | gSavedSettings.declareBOOL("SkyOverrideSimSunPosition", FALSE, "", NO_PERSIST); | ||
1280 | gSavedSettings.declareVec3("SkySunDefaultPosition", LLVector3(1.f, 0.f, 0.1f), "Default position of sun in sky (direction in world coordinates)"); | ||
1281 | 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)"); | ||
1282 | gSavedSettings.declareColor3("SkyNightColorShift", LLColor3(0.7f, 0.7f, 1.0f), "Controls moonlight color (base color applied to moon as light source)"); | ||
1283 | gSavedSettings.declareBOOL("FixedWeather", FALSE, "Weather effects do not change over time"); | ||
1284 | gSavedSettings.declareU32("WLSkyDetail", 64, "Controls vertex detail on the WindLight sky. Lower numbers will give better performance and uglier skies."); | ||
1285 | gSavedSettings.declareBOOL("SkyUseClassicClouds", TRUE, "Whether to use the old Second Life particle clouds or not"); | ||
1286 | gSavedSettings.declareBOOL("WindLightUseAtmosShaders", TRUE, "Whether to enable or disable WindLight atmospheric shaders."); | ||
1287 | gSavedSettings.declareBOOL("SkyEditPresets", FALSE, "Whether to be able to edit the sky defaults or not"); | ||
1288 | |||
1289 | // Water params | ||
1290 | gSavedSettings.declareF32("WaterGLFogDepthFloor", 0.25f, "Controls how dark water gl fog can get"); | ||
1291 | gSavedSettings.declareF32("WaterGLFogDepthScale", 50.0f, "Controls how quickly gl fog gets dark under water"); | ||
1292 | gSavedSettings.declareF32("WaterGLFogDensityScale", 0.02f, "Maps shader water fog density to gl fog density"); | ||
1293 | gSavedSettings.declareBOOL("EnableRippleWater", TRUE, "Whether to use ripple water shader or not"); | ||
1294 | gSavedSettings.declareBOOL("WaterEditPresets", FALSE, "Whether to be able to edit the water defaults or not"); | ||
1295 | |||
1296 | // Windlight window params | ||
1297 | gSavedSettings.declareRect("FloaterEnvRect", LLRect(50, 150, 650, 0), "Rectangle for Environment Editor" ); | ||
1298 | gSavedSettings.declareRect("FloaterAdvancedSkyRect", LLRect(50, 220, 450, 0), "Rectangle for Advanced Sky Editor" ); | ||
1299 | gSavedSettings.declareRect("FloaterDayCycleRect", LLRect(50, 450, 300, 0), "Rectangle for Day Cycle Editor" ); | ||
1300 | gSavedSettings.declareRect("FloaterAdvancedWaterRect", LLRect(50, 220, 450, 0), "Rectangle for Advanced Water Editor" ); | ||
1301 | |||
1302 | // Graphics compatibility and driver crash workaround params | ||
1303 | gSavedSettings.declareBOOL("UseStartScreen", TRUE, "Whether to load a start screen image or not."); | ||
1304 | |||
1305 | // Tweaked draw distance default settings | ||
1306 | gSavedSettings.declareBOOL("Disregard128DefaultDrawDistance", TRUE, "Whether to use the auto default to 128 draw distance"); | ||
1307 | gSavedSettings.declareBOOL("Disregard96DefaultDrawDistance", TRUE, "Whether to use the auto default to 96 draw distance"); | ||
1308 | |||
1309 | // Cache Stuff | ||
1310 | gSavedSettings.declareU32("VFSSalt", 1, "[DO NOT MODIFY] Controls local file caching behavior"); | ||
1311 | gSavedSettings.declareU32("VFSOldSize", 0, "[DO NOT MODIFY] Controls resizing of local file cache"); | ||
1312 | // gSavedSettings.declareU32("VFSSize", 2, "Controls amount of hard drive space reserved for local file caching (0 = 50MB, 1 = 200MB, 2 = 500MB, 3 = 1000MB)"); | ||
1313 | gSavedSettings.declareU32("CacheSize", 500, "Controls amount of hard drive space reserved for local file caching in MB"); | ||
1314 | gSavedSettings.declareString("CacheLocation", "", "Controls the location of the local disk cache"); | ||
1315 | gSavedSettings.declareString("NewCacheLocation", "", "Change the location of the local disk cache to this"); | ||
1316 | gSavedSettings.declareU32("CacheValidateCounter", 0, "Used to distribute cache validation"); | ||
1317 | // Delete all files in cache directory on startup | ||
1318 | gSavedSettings.declareBOOL("PurgeCacheOnStartup", FALSE, "Clear local file cache every time viewer is run"); | ||
1319 | gSavedSettings.declareBOOL("PurgeCacheOnNextStartup", FALSE, "Clear local file cache next time viewer is run"); | ||
1320 | |||
1321 | // Used for special titles such as "Second Life - Special E3 2003 Beta" | ||
1322 | gSavedSettings.declareBOOL("ShowOverlayTitle", FALSE, "Prints watermark text message on screen"); | ||
1323 | gSavedSettings.declareString("OverlayTitle", "Set_via_OverlayTitle_in_settings.xml", | ||
1324 | "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! | ||
1325 | |||
1326 | // Secret debug stuff. | ||
1327 | gSavedSettings.declareBOOL("UseDebugMenus", FALSE, "Turns on \"Debug\" menu"); | ||
1328 | gSavedSettings.declareS32("ServerChoice", 0, "[DO NOT MODIFY] Controls which grid you connect to"); | ||
1329 | gSavedSettings.declareString("CustomServer", "", "Specifies IP address or hostname of grid to which you connect"); | ||
1330 | gSavedSettings.declareBOOL("UseDebugLogin", FALSE, "Provides extra control over which grid to connect to"); | ||
1331 | |||
1332 | // First run is true on the first startup of a given installation. | ||
1333 | // It is not related to whether your ACCOUNT has been logged in before. | ||
1334 | // Set to false if you reach the login screen. | ||
1335 | gSavedSettings.declareBOOL("FirstRunThisInstall", TRUE, "Specifies that you have not run the viewer since you installed the latest update"); | ||
1336 | |||
1337 | // Is this the first successful login for a given installation? | ||
1338 | // It is not related to whether your ACCOUNT has been logged in before. | ||
1339 | // Set to false if you successfully connect. | ||
1340 | gSavedSettings.declareBOOL("FirstLoginThisInstall", TRUE, "Specifies that you have not successfully logged in since you installed the latest update"); | ||
1341 | |||
1342 | // The last version that was run with this prefs file. Default to a version that will never be current, | ||
1343 | // and update after the setting is used in the startup sequence. | ||
1344 | gSavedSettings.declareString("LastRunVersion", "0.0.0", "Version number of last instance of the viewer that you ran"); | ||
1345 | // Local cache version (change if format changes) | ||
1346 | gSavedSettings.declareS32("LocalCacheVersion", 0, "Version number of cache"); | ||
1347 | |||
1348 | // cached mean collision values | ||
1349 | gSavedSettings.declareBOOL("MeanCollisionBump", FALSE, "You have experienced an abuse of being bumped by an object or avatar" ); | ||
1350 | gSavedSettings.declareBOOL("MeanCollisionPushObject", FALSE, "You have experienced an abuse of being pushed by a scripted object"); | ||
1351 | gSavedSettings.declareBOOL("MeanCollisionSelected", FALSE, "You have experienced an abuse of being pushed via a selected object"); | ||
1352 | gSavedSettings.declareBOOL("MeanCollisionScripted", FALSE, "You have experienced an abuse from a scripted object"); | ||
1353 | gSavedSettings.declareBOOL("MeanCollisionPhysical", FALSE, "You have experienced an abuse from a physical object"); | ||
1354 | |||
1355 | // Does left-click show menu, or only do grabbing? | ||
1356 | gSavedSettings.declareBOOL("LeftClickShowMenu", FALSE, "Left click opens pie menu (FALSE = left click touches or grabs object)"); | ||
1357 | |||
1358 | gSavedSettings.declareF32("MouseSensitivity", 3.f, "Controls responsiveness of mouse when in mouselook mode (fraction or multiple of default mouse sensitivity)"); | ||
1359 | gSavedSettings.declareBOOL("MouseSmooth", FALSE, "Smooths out motion of mouse when in mouselook mode."); | ||
1360 | gSavedSettings.declareBOOL("InvertMouse", FALSE, "When in mouselook, moving mouse up looks down and vice verse (FALSE = moving up looks up)"); | ||
1361 | |||
1362 | gSavedSettings.declareBOOL("EditCameraMovement", FALSE, "When entering build mode, camera moves up above avatar"); | ||
1363 | gSavedSettings.declareBOOL("AppearanceCameraMovement", TRUE, "When entering appearance editing mode, camera zooms in on currently selected portion of avatar"); | ||
1364 | |||
1365 | //gSavedSettings.declareBOOL("AltShowsPhysical", FALSE, "When ALT key is held down, physical objects are rendered in red."); | ||
1366 | gSavedSettings.declareBOOL("BeaconAlwaysOn", FALSE, "Beacons / highlighting always on"); | ||
1367 | gSavedSettings.declareBOOL("scriptsbeacon", FALSE, "Beacon / Highlight scripted objects"); | ||
1368 | gSavedSettings.declareBOOL("physicalbeacon", TRUE, "Beacon / Highlight physical objects"); | ||
1369 | gSavedSettings.declareBOOL("soundsbeacon", FALSE, "Beacon / Highlight sound generators"); | ||
1370 | gSavedSettings.declareBOOL("particlesbeacon", FALSE, "Beacon / Highlight particle generators"); | ||
1371 | gSavedSettings.declareBOOL("scripttouchbeacon", TRUE, "Beacon / Highlight scripted objects with touch function"); | ||
1372 | gSavedSettings.declareBOOL("renderbeacons", FALSE, "Beacon / Highlight particle generators"); | ||
1373 | gSavedSettings.declareBOOL("renderhighlights", TRUE, "Beacon / Highlight scripted objects with touch function"); | ||
1374 | |||
1375 | gSavedSettings.declareBOOL("MuteAudio", FALSE, "All audio plays at 0 volume (streaming audio still takes up bandwidth, for example)"); | ||
1376 | gSavedSettings.declareBOOL("MuteWhenMinimized", TRUE, "Mute audio when SL window is minimized"); | ||
1377 | |||
1378 | gSavedSettings.declareBOOL("MuteMusic", FALSE, "Music plays at 0 volume (streaming audio still takes up bandwidth)"); | ||
1379 | gSavedSettings.declareBOOL("MuteMedia", FALSE, "Media plays at 0 volume (streaming audio still takes up bandwidth)"); | ||
1380 | gSavedSettings.declareBOOL("MuteVoice", FALSE, "Voice plays at 0 volume (streaming audio still takes up bandwidth)"); | ||
1381 | gSavedSettings.declareBOOL("MuteSounds", FALSE, "Sound effects play at 0 volume"); | ||
1382 | gSavedSettings.declareBOOL("MuteAmbient", FALSE, "Ambient sound effects, such as wind noise, play at 0 volume"); | ||
1383 | gSavedSettings.declareBOOL("MuteUI", FALSE, "UI sound effects play at 0 volume"); | ||
1384 | |||
1385 | gSavedSettings.declareS32("NotifyBoxWidth", 350, "Width of notification messages"); | ||
1386 | gSavedSettings.declareS32("NotifyBoxHeight", 200, "Height of notification messages"); | ||
1387 | |||
1388 | gSavedSettings.declareS32("GroupNotifyBoxWidth", 400, "Width of group notice messages"); | ||
1389 | gSavedSettings.declareS32("GroupNotifyBoxHeight", 260, "Height of group notice messages"); | ||
1390 | |||
1391 | // Time in seconds. | ||
1392 | gSavedSettings.declareF32("NotifyTipDuration", 4.f, "Length of time that notification tips stay on screen (seconds)"); | ||
1393 | |||
1394 | gSavedSettings.declareBOOL("NotifyMoneyChange", TRUE, "Pop up notifications for all L$ transactions"); | ||
1395 | |||
1396 | gSavedSettings.declareBOOL("ShowNewInventory", TRUE, | ||
1397 | "Automatically views new notecards/textures/landmarks"); | ||
1398 | gSavedSettings.declareBOOL("AutoAcceptNewInventory", FALSE, | ||
1399 | "Automatically accept new notecards/textures/landmarks"); | ||
1400 | |||
1401 | // Bitfield | ||
1402 | // 1 = by date | ||
1403 | // 2 = folders always by name | ||
1404 | // 4 = system folders to top | ||
1405 | // This where the default first time user gets his settings. | ||
1406 | gSavedSettings.declareU32("InventorySortOrder", 1 | 2 | 4, "Specifies sort key for inventory items (+0 = name, +1 = date, +2 = folders always by name, +4 = system folders to top)"); | ||
1407 | gSavedSettings.declareU32("RecentItemsSortOrder", 1, "Specifies sort key for recent inventory items (+0 = name, +1 = date, +2 = folders always by name, +4 = system folders to top)"); | ||
1408 | gSavedSettings.declareU32("TexturePickerSortOrder", 2, "Specifies sort key for textures in texture picker (+0 = name, +1 = date, +2 = folders always by name, +4 = system folders to top)"); | ||
1409 | gSavedSettings.declareU32("AvatarPickerSortOrder", 2, "Specifies sort key for textures in avatar picker (+0 = name, +1 = date, +2 = folders always by name, +4 = system folders to top)"); | ||
1410 | |||
1411 | // Pixels away from edge that windows snap. | ||
1412 | gSavedSettings.declareS32("SnapMargin", 10, "Controls maximum distance between windows before they auto-snap together (pixels)"); | ||
1413 | |||
1414 | // Will be set on first run | ||
1415 | gSavedSettings.declareS32("FloaterViewBottom", -1, "[DO NOT MODIFY] Controls layout of floating windows within SL window"); | ||
1416 | |||
1417 | // Automatically fly when up key held down, and automatically stop | ||
1418 | // flying when landing on something. | ||
1419 | gSavedSettings.declareBOOL("AutomaticFly", TRUE, "Fly by holding jump key or using \"Fly\" command (FALSE = fly by using \"Fly\" command only)"); | ||
1420 | |||
1421 | // Index of the last find panel you opened. | ||
1422 | gSavedSettings.declareString("LastFindPanel", "find_all_panel", "Controls which find operation appears by default when clicking \"Find\" button "); | ||
1423 | |||
1424 | // grab keystrokes at last possible moment to minimize latency | ||
1425 | gSavedSettings.declareBOOL("AsyncKeyboard", TRUE, "Improves responsiveness to keyboard input when at low framerates"); | ||
1426 | |||
1427 | // Numpad numbers move avatar even when numlock is off/you're using a Mac? | ||
1428 | 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)"); | ||
1429 | |||
1430 | // 1.2.9: For transition from 1.2.8 to 1.2.9, need to ask people | ||
1431 | // this question regardless of number of executions. | ||
1432 | // 1.6.10: We're just defaulting crash reporting to on | ||
1433 | // 1.7.x: We ask at crash time, but leave this so when you flip back and | ||
1434 | // forth between 1.6 and 1.7 it doesn't ask you every time. | ||
1435 | gSavedSettings.declareBOOL("AskedAboutCrashReports", FALSE, "Turns off dialog asking if you want to enable crash reporting"); | ||
1436 | |||
1437 | // Default for the "Online" checkbox in Find -> People | ||
1438 | gSavedSettings.declareBOOL("FindPeopleOnline", TRUE, "Limits people search to only users who are logged on"); | ||
1439 | |||
1440 | // Default for checkboxes in Find -> Land | ||
1441 | //gSavedSettings.declareBOOL("FindLandForSale", TRUE); | ||
1442 | //gSavedSettings.declareBOOL("FindLandAuction", TRUE); | ||
1443 | |||
1444 | // Default for Find -> Land combo box | ||
1445 | gSavedSettings.declareString("FindLandType", "All", "Controls which type of land you are searching for in Find Land interface (\"All\", \"Auction\", \"For Sale\")"); | ||
1446 | |||
1447 | gSavedSettings.declareBOOL("FindLandPrice", TRUE, "Enables filtering of land search results by price"); | ||
1448 | gSavedSettings.declareBOOL("FindLandArea", FALSE, "Enables filtering of land search results by area"); | ||
1449 | |||
1450 | // Checkboxes in Find -> Popular | ||
1451 | // Should these all be the same? I imagine we might want a single "show mature." - bbc | ||
1452 | gSavedSettings.declareBOOL("ShowMatureFindAll",FALSE, "Display results of find all that are in mature sims"); | ||
1453 | gSavedSettings.declareBOOL("ShowMatureSims", FALSE, "Display results of find places or find popular that are in mature sims"); | ||
1454 | gSavedSettings.declareBOOL("ShowMatureEvents", FALSE, "Display results of find events that are flagged as mature"); | ||
1455 | gSavedSettings.declareBOOL("ShowMatureClassifieds", FALSE, "Display results of find classifieds that are flagged as mature"); | ||
1456 | gSavedSettings.declareBOOL("ShowMatureGroups", TRUE, "Display results of find groups that are in flagged as mature"); | ||
1457 | |||
1458 | gSavedSettings.declareBOOL("FindPlacesPictures", TRUE, "Display only results of find places that have pictures"); | ||
1459 | |||
1460 | gSavedSettings.declareBOOL("MapShowEvents", TRUE, "Show events on world map"); | ||
1461 | //gSavedSettings.declareBOOL("MapShowPicks", TRUE, "[NOT USED]"); | ||
1462 | gSavedSettings.declareBOOL("MapShowPopular", TRUE, "Show popular places on world map"); | ||
1463 | gSavedSettings.declareBOOL("MapShowLandForSale", FALSE, "Show land for sale on world map"); | ||
1464 | gSavedSettings.declareBOOL("MapShowTelehubs", TRUE, "Show telehubs on world map"); | ||
1465 | gSavedSettings.declareBOOL("MapShowPeople", TRUE, "Show other users on world map"); | ||
1466 | gSavedSettings.declareBOOL("MapShowInfohubs", TRUE, "Show infohubs on the world map"); | ||
1467 | gSavedSettings.declareBOOL("MapShowClassifieds", TRUE, "Show locations associated with classified ads on world map"); | ||
1468 | |||
1469 | // Search panel in directory uses this URL for queries | ||
1470 | gSavedSettings.declareString("SearchURLDefault", | ||
1471 | "http://secondlife.com/app/search/index.php?", | ||
1472 | "URL to load for empty searches"); | ||
1473 | gSavedSettings.declareString("SearchURLQuery", | ||
1474 | "http://secondlife.com/app/search/search_proxy.php?q=[QUERY]&s=[COLLECTION]&", | ||
1475 | "URL to use for searches"); | ||
1476 | // Version 2 added [SESSION], must invalidate old saved settings. | ||
1477 | gSavedSettings.declareString("SearchURLSuffix2", | ||
1478 | "lang=[LANG]&m=[MATURE]&t=[TEEN]®ion=[REGION]&x=[X]&y=[Y]&z=[Z]&session=[SESSION]", | ||
1479 | "Parameters added to end of search queries"); | ||
1480 | |||
1481 | // Hide/Show search bar | ||
1482 | gSavedSettings.declareBOOL("ShowSearchBar", TRUE, "Show the Search Bar in the Status Overlay"); | ||
1483 | |||
1484 | // Arrow keys move avatar while in chat? | ||
1485 | gSavedSettings.declareBOOL("ArrowKeysMoveAvatar", TRUE, "While cursor is in chat entry box, arrow keys still control your avatar"); | ||
1486 | gSavedSettings.declareBOOL("ChatBarStealsFocus", TRUE, "Whenever keyboard focus is removed from the UI, and the chat bar is visible, the chat bar takes focus"); | ||
1487 | |||
1488 | // Show yellow selection fence in snapshots for auctions? | ||
1489 | gSavedSettings.declareBOOL("AuctionShowFence", TRUE, "When auctioning land, include parcel boundary marker in snapshot"); | ||
1490 | |||
1491 | // Use DX9 to probe hardware on startup. Only do this once, | ||
1492 | // because it's slow. | ||
1493 | gSavedSettings.declareBOOL("ProbeHardwareOnStartup", TRUE, "Query current hardware configuration on application startup"); | ||
1494 | |||
1495 | // have we told the user his hardware sucks? Let him know just once | ||
1496 | gSavedSettings.declareBOOL("AlertedUnsupportedHardware", FALSE, "Toggle that lets us tell the user he's on old hardware only once"); | ||
1497 | |||
1498 | // enable/disable system color picker | ||
1499 | gSavedSettings.declareBOOL("UseDefaultColorPicker", FALSE, "Use color picker supplied by operating system"); | ||
1500 | gSavedSettings.declareF32("PickerContextOpacity", 0.35f, "Controls overall opacity of context frustrum connecting color and texture pickers with their swatches"); | ||
1501 | |||
1502 | gSavedSettings.declareF32("ColumnHeaderDropDownDelay", 0.3f, "Time in seconds of mouse click before column header shows sort options list"); | ||
1503 | // support for avatar exporter | ||
1504 | //gSavedSettings.declareString("AvExportPath", "", "[NOT USED]"); | ||
1505 | //gSavedSettings.declareString("AvExportBaseName", "", "[NOT USED]"); | ||
1506 | |||
1507 | // Show in-world hover tips for objects | ||
1508 | gSavedSettings.declareBOOL("ShowHoverTips", TRUE, "Show descriptive tooltip when mouse hovers over items in world"); | ||
1509 | gSavedSettings.declareBOOL("ShowLandHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over land"); | ||
1510 | gSavedSettings.declareBOOL("ShowAllObjectHoverTip", FALSE, "Show descriptive tooltip when mouse hovers over non-interactive and interactive objects."); | ||
1511 | |||
1512 | // Use an external web browser (Firefox, Internet Explorer) | ||
1513 | gSavedSettings.declareBOOL("UseExternalBrowser", FALSE, "Use default browser when opening web pages instead of in-world browser."); | ||
1514 | gSavedSettings.declareBOOL("CookiesEnabled", TRUE, "Accept cookies from Web sites?"); | ||
1515 | |||
1516 | // browser home page | ||
1517 | gSavedSettings.declareString("BrowserHomePage", "http://www.secondlife.com", "[NOT USED]"); | ||
1518 | |||
1519 | // browser proxy variables | ||
1520 | gSavedSettings.declareBOOL("BrowserProxyEnabled", FALSE, "Use Web Proxy"); | ||
1521 | gSavedSettings.declareString("BrowserProxyAddress", "", "Address for the Web Proxy]"); | ||
1522 | gSavedSettings.declareS32("BrowserProxyPort", 3128, "Port for Web Proxy"); | ||
1523 | gSavedSettings.declareS32("BrowserProxySocks45", 5, "[NOT USED]"); | ||
1524 | gSavedSettings.declareString("BrowserProxyExclusions", "", "[NOT USED]"); | ||
1525 | |||
1526 | // Allow user to completely disable web pages on prims | ||
1527 | gSavedSettings.declareBOOL("UseWebPagesOnPrims", FALSE, "[NOT USED]"); | ||
1528 | |||
1529 | // use object-object occlusion culling | ||
1530 | gSavedSettings.declareBOOL("UseOcclusion", TRUE, "Enable object culling based on occlusion (coverage) by other objects"); | ||
1531 | gSavedSettings.declareBOOL("RenderFastAlpha", FALSE, "Use lossy alpha rendering optimization (opaque/nonexistent small alpha faces)."); | ||
1532 | |||
1533 | gSavedSettings.declareBOOL("DoubleClickAutoPilot", FALSE, "Enable double-click auto pilot"); | ||
1534 | |||
1535 | //cheesy beacon effects | ||
1536 | gSavedSettings.declareBOOL("CheesyBeacon", FALSE, "Enable cheesy beacon effects"); | ||
1537 | |||
1538 | //flycam controls and joystick mapping | ||
1539 | gSavedSettings.declareS32("FlycamAxis0", 0, "Flycam hardware axis mapping for internal axis 0 ([0, 5])."); | ||
1540 | gSavedSettings.declareS32("FlycamAxis1", 1, "Flycam hardware axis mapping for internal axis 1 ([0, 5])."); | ||
1541 | gSavedSettings.declareS32("FlycamAxis2", 2, "Flycam hardware axis mapping for internal axis 2 ([0, 5])."); | ||
1542 | gSavedSettings.declareS32("FlycamAxis3", 3, "Flycam hardware axis mapping for internal axis 3 ([0, 5])."); | ||
1543 | gSavedSettings.declareS32("FlycamAxis4", 4, "Flycam hardware axis mapping for internal axis 4 ([0, 5])."); | ||
1544 | gSavedSettings.declareS32("FlycamAxis5", 5, "Flycam hardware axis mapping for internal axis 5 ([0, 5])."); | ||
1545 | gSavedSettings.declareS32("FlycamAxis6", -1, "Flycam hardware axis mapping for internal axis 6 ([0, 5])."); | ||
1546 | |||
1547 | gSavedSettings.declareF32("FlycamAxisScale0", 1, "Flycam axis 0 scaler."); | ||
1548 | gSavedSettings.declareF32("FlycamAxisScale1", 1, "Flycam axis 1 scaler."); | ||
1549 | gSavedSettings.declareF32("FlycamAxisScale2", 1, "Flycam axis 2 scaler."); | ||
1550 | gSavedSettings.declareF32("FlycamAxisScale3", 1, "Flycam axis 3 scaler."); | ||
1551 | gSavedSettings.declareF32("FlycamAxisScale4", 1, "Flycam axis 4 scaler."); | ||
1552 | gSavedSettings.declareF32("FlycamAxisScale5", 1, "Flycam axis 5 scaler."); | ||
1553 | gSavedSettings.declareF32("FlycamAxisScale6", 1, "Flycam axis 6 scaler."); | ||
1554 | |||
1555 | gSavedSettings.declareF32("FlycamAxisDeadZone0", 0.1f, "Flycam axis 0 dead zone."); | ||
1556 | gSavedSettings.declareF32("FlycamAxisDeadZone1", 0.1f, "Flycam axis 1 dead zone."); | ||
1557 | gSavedSettings.declareF32("FlycamAxisDeadZone2", 0.1f, "Flycam axis 2 dead zone."); | ||
1558 | gSavedSettings.declareF32("FlycamAxisDeadZone3", 0.1f, "Flycam axis 3 dead zone."); | ||
1559 | gSavedSettings.declareF32("FlycamAxisDeadZone4", 0.1f, "Flycam axis 4 dead zone."); | ||
1560 | gSavedSettings.declareF32("FlycamAxisDeadZone5", 0.1f, "Flycam axis 5 dead zone."); | ||
1561 | gSavedSettings.declareF32("FlycamAxisDeadZone6", 0.1f, "Flycam axis 6 dead zone."); | ||
1562 | |||
1563 | gSavedSettings.declareF32("FlycamFeathering", 16.f, "Flycam feathering (less is softer)"); | ||
1564 | gSavedSettings.declareBOOL("FlycamAutoLeveling", TRUE, "Keep Flycam level."); | ||
1565 | gSavedSettings.declareBOOL("FlycamAbsolute", FALSE, "Treat Flycam values as absolute positions (not deltas)."); | ||
1566 | gSavedSettings.declareBOOL("FlycamZoomDirect", FALSE, "Map flycam zoom axis directly to camera zoom."); | ||
1567 | |||
1568 | // logitech LCD settings | ||
1569 | gSavedSettings.declareS32("LCDDestination", 0, "Which LCD to use"); | ||
1570 | gSavedSettings.declareBOOL("DisplayChat", TRUE, "Display Latest Chat message on LCD"); | ||
1571 | gSavedSettings.declareBOOL("DisplayIM", TRUE, "Display Latest IM message on LCD"); | ||
1572 | gSavedSettings.declareBOOL("DisplayRegion", TRUE, "Display Location information on LCD"); | ||
1573 | gSavedSettings.declareBOOL("DisplayDebug", TRUE, "Display Network Information on LCD"); | ||
1574 | gSavedSettings.declareBOOL("DisplayDebugConsole", TRUE, "Display Console Debug Information on LCD"); | ||
1575 | gSavedSettings.declareBOOL("DisplayLinden", TRUE, "Display Account Information on LCD"); | ||
1576 | |||
1577 | // Vector Processor & Math | ||
1578 | gSavedSettings.declareBOOL("VectorizePerfTest", TRUE, "Test SSE/vectorization performance and choose fastest version."); | ||
1579 | gSavedSettings.declareBOOL("VectorizeEnable", FALSE, "Enable general vector operations and data alignment."); | ||
1580 | gSavedSettings.declareBOOL("VectorizeSkin", TRUE, "Enable vector operations for avatar skinning."); | ||
1581 | gSavedSettings.declareU32( "VectorizeProcessor", 0, "0=Compiler Default, 1=SSE, 2=SSE2, autodetected", NO_PERSIST); | ||
1582 | |||
1583 | gSavedSettings.declareBOOL("SaveMinidump", TRUE, "Save minidump for developer debugging on crash"); | ||
1584 | |||
1585 | // | ||
1586 | // crash_settings.xml | ||
1587 | // | ||
1588 | |||
1589 | // Setting name is shared with win_crash_logger | ||
1590 | gCrashSettings.declareS32(CRASH_BEHAVIOR_SETTING, CRASH_BEHAVIOR_ASK, "Controls behavior when viewer crashes " | ||
1591 | "(0 = ask before sending crash report, 1 = always send crash report, 2 = never send crash report)"); | ||
1592 | |||
1593 | } | ||
1594 | |||
1595 | |||
1596 | void fixup_settings() | ||
1597 | { | ||
1598 | #if LL_RELEASE_FOR_DOWNLOAD | ||
1599 | // Force some settings on startup | ||
1600 | gSavedSettings.setBOOL("AnimateTextures", TRUE); // Force AnimateTextures to always be on | ||
1601 | #endif | ||
1602 | |||
1603 | // Special code to tweak with defaults | ||
1604 | std::string last_major, last_minor, last_patch; | ||
1605 | S32 digit = gLastRunVersion.find_first_of("0123456789"); | ||
1606 | S32 dot = gLastRunVersion.find_first_of('.', digit); | ||
1607 | if (dot != std::string::npos && digit != std::string::npos) | ||
1608 | { | ||
1609 | last_major = gLastRunVersion.substr(digit, dot-digit); | ||
1610 | digit = dot+1; | ||
1611 | dot = gLastRunVersion.find_first_of('.', digit); | ||
1612 | } | ||
1613 | if (dot != std::string::npos && digit != std::string::npos) | ||
1614 | { | ||
1615 | last_minor = gLastRunVersion.substr(digit, dot-digit); | ||
1616 | digit = dot+1; | ||
1617 | dot = gLastRunVersion.find_first_of('.', digit); | ||
1618 | } | ||
1619 | if (dot != std::string::npos && digit != std::string::npos) | ||
1620 | { | ||
1621 | last_patch = gLastRunVersion.substr(digit, dot-digit); | ||
1622 | } | ||
1623 | // 1.18.x -> 1.19.x | ||
1624 | if (last_major == "1" && last_minor == "18") | ||
1625 | { | ||
1626 | if (!gSavedSettings.hasLoaded("EnableVoiceChat")) | ||
1627 | { | ||
1628 | gSavedSettings.setBOOL("EnableVoiceChat", FALSE); // Default 1.18.x users to voice chat disabled | ||
1629 | } | ||
1630 | } | ||
1631 | |||
1632 | gSavedSettings.clearLoaded(); | ||
1633 | } | ||
1634 | |||
1635 | //////////////////////////////////////////////////////////////////////////// | ||
1636 | // Listeners | ||
1637 | |||
1638 | class LLAFKTimeoutListener: public LLSimpleListener | ||
1639 | { | ||
1640 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1641 | { | ||
1642 | gAFKTimeout = (F32) event->getValue().asReal(); | ||
1643 | return true; | ||
1644 | } | ||
1645 | }; | ||
1646 | static LLAFKTimeoutListener afk_timeout_listener; | ||
1647 | |||
1648 | class LLMouseSensitivityListener: public LLSimpleListener | ||
1649 | { | ||
1650 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1651 | { | ||
1652 | gMouseSensitivity = (F32) event->getValue().asReal(); | ||
1653 | return true; | ||
1654 | } | ||
1655 | }; | ||
1656 | static LLMouseSensitivityListener mouse_sensitivity_listener; | ||
1657 | |||
1658 | |||
1659 | class LLInvertMouseListener: public LLSimpleListener | ||
1660 | { | ||
1661 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1662 | { | ||
1663 | gInvertMouse = event->getValue().asBoolean(); | ||
1664 | return true; | ||
1665 | } | ||
1666 | }; | ||
1667 | static LLInvertMouseListener invert_mouse_listener; | ||
1668 | |||
1669 | class LLRenderAvatarMouselookListener: public LLSimpleListener | ||
1670 | { | ||
1671 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1672 | { | ||
1673 | LLVOAvatar::sVisibleInFirstPerson = event->getValue().asBoolean(); | ||
1674 | return true; | ||
1675 | } | ||
1676 | }; | ||
1677 | static LLRenderAvatarMouselookListener render_avatar_mouselook_listener; | ||
1678 | |||
1679 | class LLRenderFarClipListener: public LLSimpleListener | ||
1680 | { | ||
1681 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1682 | { | ||
1683 | F32 draw_distance = (F32) event->getValue().asReal(); | ||
1684 | gAgent.mDrawDistance = draw_distance; | ||
1685 | if (gWorldPointer) | ||
1686 | { | ||
1687 | gWorldPointer->setLandFarClip(draw_distance); | ||
1688 | } | ||
1689 | return true; | ||
1690 | } | ||
1691 | }; | ||
1692 | static LLRenderFarClipListener render_far_clip_listener; | ||
1693 | |||
1694 | class LLTerrainDetailListener: public LLSimpleListener | ||
1695 | { | ||
1696 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1697 | { | ||
1698 | LLDrawPoolTerrain::sDetailMode = event->getValue().asInteger(); | ||
1699 | return true; | ||
1700 | } | ||
1701 | }; | ||
1702 | static LLTerrainDetailListener terrain_detail_listener; | ||
1703 | |||
1704 | |||
1705 | class LLSetShaderListener: public LLSimpleListener | ||
1706 | { | ||
1707 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1708 | { | ||
1709 | LLShaderMgr::setShaders(); | ||
1710 | return true; | ||
1711 | } | ||
1712 | }; | ||
1713 | static LLSetShaderListener set_shader_listener; | ||
1714 | |||
1715 | class LLReleaseGLBufferListener: public LLSimpleListener | ||
1716 | { | ||
1717 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1718 | { | ||
1719 | if (gPipeline.isInit()) | ||
1720 | { | ||
1721 | gPipeline.releaseGLBuffers(); | ||
1722 | gPipeline.createGLBuffers(); | ||
1723 | } | ||
1724 | return true; | ||
1725 | } | ||
1726 | }; | ||
1727 | static LLReleaseGLBufferListener release_gl_buffer_listener; | ||
1728 | |||
1729 | class LLVolumeLODListener: public LLSimpleListener | ||
1730 | { | ||
1731 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1732 | { | ||
1733 | LLVOVolume::sLODFactor = (F32) event->getValue().asReal(); | ||
1734 | LLVOVolume::sDistanceFactor = 1.f-LLVOVolume::sLODFactor * 0.1f; | ||
1735 | return true; | ||
1736 | } | ||
1737 | }; | ||
1738 | static LLVolumeLODListener volume_lod_listener; | ||
1739 | |||
1740 | class LLAvatarLODListener: public LLSimpleListener | ||
1741 | { | ||
1742 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1743 | { | ||
1744 | LLVOAvatar::sLODFactor = (F32) event->getValue().asReal(); | ||
1745 | return true; | ||
1746 | } | ||
1747 | }; | ||
1748 | static LLAvatarLODListener avatar_lod_listener; | ||
1749 | |||
1750 | class LLTerrainLODListener: public LLSimpleListener | ||
1751 | { | ||
1752 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1753 | { | ||
1754 | LLVOSurfacePatch::sLODFactor = (F32) event->getValue().asReal(); | ||
1755 | //sqaure lod factor to get exponential range of [0,4] and keep | ||
1756 | //a value of 1 in the middle of the detail slider for consistency | ||
1757 | //with other detail sliders (see panel_preferences_graphics1.xml) | ||
1758 | LLVOSurfacePatch::sLODFactor *= LLVOSurfacePatch::sLODFactor; | ||
1759 | return true; | ||
1760 | } | ||
1761 | }; | ||
1762 | static LLTerrainLODListener terrain_lod_listener; | ||
1763 | |||
1764 | class LLTreeLODListener: public LLSimpleListener | ||
1765 | { | ||
1766 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1767 | { | ||
1768 | LLVOTree::sTreeFactor = (F32) event->getValue().asReal(); | ||
1769 | return true; | ||
1770 | } | ||
1771 | }; | ||
1772 | static LLTreeLODListener tree_lod_listener; | ||
1773 | |||
1774 | class LLFlexLODListener: public LLSimpleListener | ||
1775 | { | ||
1776 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1777 | { | ||
1778 | LLVolumeImplFlexible::sUpdateFactor = (F32) event->getValue().asReal(); | ||
1779 | return true; | ||
1780 | } | ||
1781 | }; | ||
1782 | static LLFlexLODListener flex_lod_listener; | ||
1783 | |||
1784 | class LLGammaListener: public LLSimpleListener | ||
1785 | { | ||
1786 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1787 | { | ||
1788 | F32 gamma = (F32) event->getValue().asReal(); | ||
1789 | if (gamma == 0.0f) | ||
1790 | { | ||
1791 | gamma = 1.0f; // restore normal gamma | ||
1792 | } | ||
1793 | if (gViewerWindow && gViewerWindow->getWindow() && gamma != gViewerWindow->getWindow()->getGamma()) | ||
1794 | { | ||
1795 | // Only save it if it's changed | ||
1796 | if (!gViewerWindow->getWindow()->setGamma(gamma)) | ||
1797 | { | ||
1798 | llwarns << "setGamma failed!" << llendl; | ||
1799 | } | ||
1800 | } | ||
1801 | |||
1802 | return true; | ||
1803 | } | ||
1804 | }; | ||
1805 | static LLGammaListener gamma_listener; | ||
1806 | |||
1807 | const F32 MAX_USER_FOG_RATIO = 10.f; | ||
1808 | const F32 MIN_USER_FOG_RATIO = 0.5f; | ||
1809 | |||
1810 | class LLFogRatioListener: public LLSimpleListener | ||
1811 | { | ||
1812 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1813 | { | ||
1814 | F32 fog_ratio = llmax(MIN_USER_FOG_RATIO, | ||
1815 | llmin((F32) event->getValue().asReal(), | ||
1816 | MAX_USER_FOG_RATIO)); | ||
1817 | gSky.setFogRatio(fog_ratio); | ||
1818 | return true; | ||
1819 | } | ||
1820 | }; | ||
1821 | static LLFogRatioListener fog_ratio_listener; | ||
1822 | |||
1823 | class LLMaxPartCountListener: public LLSimpleListener | ||
1824 | { | ||
1825 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1826 | { | ||
1827 | LLViewerPartSim::setMaxPartCount(event->getValue().asInteger()); | ||
1828 | return true; | ||
1829 | } | ||
1830 | }; | ||
1831 | static LLMaxPartCountListener max_partCount_listener; | ||
1832 | |||
1833 | const S32 MAX_USER_COMPOSITE_LIMIT = 100; | ||
1834 | const S32 MIN_USER_COMPOSITE_LIMIT = 0; | ||
1835 | |||
1836 | class LLCompositeLimitListener: public LLSimpleListener | ||
1837 | { | ||
1838 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1839 | { | ||
1840 | S32 composite_limit = llmax(MIN_USER_COMPOSITE_LIMIT, | ||
1841 | llmin((S32)event->getValue().asInteger(), | ||
1842 | MAX_USER_COMPOSITE_LIMIT)); | ||
1843 | LLVOAvatar::sMaxOtherAvatarsToComposite = composite_limit; | ||
1844 | return true; | ||
1845 | } | ||
1846 | }; | ||
1847 | static LLCompositeLimitListener composite_limit_listener; | ||
1848 | |||
1849 | class LLVideoMemoryListener: public LLSimpleListener | ||
1850 | { | ||
1851 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1852 | { | ||
1853 | gImageList.updateMaxResidentTexMem(event->getValue().asInteger()); | ||
1854 | return true; | ||
1855 | } | ||
1856 | }; | ||
1857 | static LLVideoMemoryListener video_memory_listener; | ||
1858 | |||
1859 | class LLBandwidthListener: public LLSimpleListener | ||
1860 | { | ||
1861 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1862 | { | ||
1863 | gViewerThrottle.setMaxBandwidth((F32) event->getValue().asReal()); | ||
1864 | return true; | ||
1865 | } | ||
1866 | }; | ||
1867 | static LLBandwidthListener bandwidth_listener; | ||
1868 | |||
1869 | class LLChatFontSizeListener: public LLSimpleListener | ||
1870 | { | ||
1871 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1872 | { | ||
1873 | gConsole->setFontSize(event->getValue().asInteger()); | ||
1874 | return true; | ||
1875 | } | ||
1876 | }; | ||
1877 | static LLChatFontSizeListener chat_font_size_listener; | ||
1878 | |||
1879 | class LLChatPersistTimeListener: public LLSimpleListener | ||
1880 | { | ||
1881 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1882 | { | ||
1883 | gConsole->setLinePersistTime((F32) event->getValue().asReal()); | ||
1884 | return true; | ||
1885 | } | ||
1886 | }; | ||
1887 | static LLChatPersistTimeListener chat_persist_time_listener; | ||
1888 | |||
1889 | class LLConsoleMaxLinesListener: public LLSimpleListener | ||
1890 | { | ||
1891 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1892 | { | ||
1893 | gConsole->setMaxLines(event->getValue().asInteger()); | ||
1894 | return true; | ||
1895 | } | ||
1896 | }; | ||
1897 | static LLConsoleMaxLinesListener console_max_lines_listener; | ||
1898 | |||
1899 | // Listener for all volume settings | ||
1900 | class LLAudioListener: public LLSimpleListener | ||
1901 | { | ||
1902 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1903 | { | ||
1904 | audio_update_volume(true); | ||
1905 | return true; | ||
1906 | } | ||
1907 | }; | ||
1908 | static LLAudioListener audio_listener; | ||
1909 | |||
1910 | class LLJoystickListener : public LLSimpleListener | ||
1911 | { | ||
1912 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1913 | { | ||
1914 | LLViewerJoystick::updateCamera(TRUE); | ||
1915 | return true; | ||
1916 | } | ||
1917 | }; | ||
1918 | static LLJoystickListener joystick_listener; | ||
1919 | |||
1920 | |||
1921 | |||
1922 | class LLAudioStreamMusicListener: public LLSimpleListener | ||
1923 | { | ||
1924 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1925 | { | ||
1926 | if (gAudiop) | ||
1927 | { | ||
1928 | if ( event->getValue().asBoolean() ) | ||
1929 | { | ||
1930 | if (gParcelMgr | ||
1931 | && gParcelMgr->getAgentParcel() | ||
1932 | && !gParcelMgr->getAgentParcel()->getMusicURL().empty()) | ||
1933 | { | ||
1934 | // if stream is already playing, don't call this | ||
1935 | // otherwise music will briefly stop | ||
1936 | if ( ! gAudiop->isInternetStreamPlaying() ) | ||
1937 | { | ||
1938 | gAudiop->startInternetStream(gParcelMgr->getAgentParcel()->getMusicURL().c_str()); | ||
1939 | } | ||
1940 | } | ||
1941 | } | ||
1942 | else | ||
1943 | { | ||
1944 | gAudiop->stopInternetStream(); | ||
1945 | } | ||
1946 | } | ||
1947 | return true; | ||
1948 | } | ||
1949 | }; | ||
1950 | |||
1951 | static LLAudioStreamMusicListener audio_stream_music_listener; | ||
1952 | |||
1953 | |||
1954 | |||
1955 | class LLUseOcclusionListener: public LLSimpleListener | ||
1956 | { | ||
1957 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1958 | { | ||
1959 | LLPipeline::sUseOcclusion = (event->getValue().asBoolean() && gGLManager.mHasOcclusionQuery | ||
1960 | && gFeatureManagerp->isFeatureAvailable("UseOcclusion") && !gUseWireframe) ? 2 : 0; | ||
1961 | return true; | ||
1962 | } | ||
1963 | }; | ||
1964 | static LLUseOcclusionListener use_occlusion_listener; | ||
1965 | |||
1966 | class LLNumpadControlListener: public LLSimpleListener | ||
1967 | { | ||
1968 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1969 | { | ||
1970 | if (gKeyboard) | ||
1971 | { | ||
1972 | gKeyboard->setNumpadDistinct(static_cast<LLKeyboard::e_numpad_distinct>(event->getValue().asInteger())); | ||
1973 | } | ||
1974 | return true; | ||
1975 | } | ||
1976 | }; | ||
1977 | |||
1978 | static LLNumpadControlListener numpad_control_listener; | ||
1979 | |||
1980 | class LLRenderUseVBOListener: public LLSimpleListener | ||
1981 | { | ||
1982 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1983 | { | ||
1984 | if (gPipeline.isInit()) | ||
1985 | { | ||
1986 | gPipeline.setUseVBO(event->getValue().asBoolean()); | ||
1987 | } | ||
1988 | return true; | ||
1989 | } | ||
1990 | }; | ||
1991 | static LLRenderUseVBOListener render_use_vbo_listener; | ||
1992 | |||
1993 | class LLWLSkyDetailListener: public LLSimpleListener | ||
1994 | { | ||
1995 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
1996 | { | ||
1997 | if (gSky.mVOWLSkyp.notNull()) | ||
1998 | { | ||
1999 | gSky.mVOWLSkyp->updateGeometry(gSky.mVOWLSkyp->mDrawable); | ||
2000 | } | ||
2001 | return true; | ||
2002 | } | ||
2003 | }; | ||
2004 | static LLWLSkyDetailListener wl_sky_detail_listener; | ||
2005 | |||
2006 | class LLRenderLightingDetailListener: public LLSimpleListener | ||
2007 | { | ||
2008 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2009 | { | ||
2010 | if (gPipeline.isInit()) | ||
2011 | { | ||
2012 | gPipeline.setLightingDetail(event->getValue().asInteger()); | ||
2013 | } | ||
2014 | return true; | ||
2015 | } | ||
2016 | }; | ||
2017 | static LLRenderLightingDetailListener render_lighting_detail_listener; | ||
2018 | |||
2019 | class LLResetVertexBuffersListener: public LLSimpleListener | ||
2020 | { | ||
2021 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2022 | { | ||
2023 | if (gPipeline.isInit()) | ||
2024 | { | ||
2025 | gPipeline.resetVertexBuffers(); | ||
2026 | } | ||
2027 | return true; | ||
2028 | } | ||
2029 | }; | ||
2030 | static LLResetVertexBuffersListener reset_vbo_listener; | ||
2031 | |||
2032 | class LLRenderDynamicLODListener: public LLSimpleListener | ||
2033 | { | ||
2034 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2035 | { | ||
2036 | LLPipeline::sDynamicLOD = event->getValue().asBoolean(); | ||
2037 | return true; | ||
2038 | } | ||
2039 | }; | ||
2040 | static LLRenderDynamicLODListener render_dynamic_lod_listener; | ||
2041 | |||
2042 | class LLRenderUseFBOListener: public LLSimpleListener | ||
2043 | { | ||
2044 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2045 | { | ||
2046 | LLRenderTarget::sUseFBO = event->getValue().asBoolean(); | ||
2047 | if (gPipeline.isInit()) | ||
2048 | { | ||
2049 | gPipeline.releaseGLBuffers(); | ||
2050 | gPipeline.createGLBuffers(); | ||
2051 | } | ||
2052 | return true; | ||
2053 | } | ||
2054 | }; | ||
2055 | static LLRenderUseFBOListener render_use_fbo_listener; | ||
2056 | |||
2057 | class LLRenderUseImpostorsListener : public LLSimpleListener | ||
2058 | { | ||
2059 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2060 | { | ||
2061 | LLVOAvatar::sUseImpostors = event->getValue().asBoolean(); | ||
2062 | return true; | ||
2063 | } | ||
2064 | }; | ||
2065 | static LLRenderUseImpostorsListener render_use_impostors_listener; | ||
2066 | |||
2067 | class LLRenderUseCleverUIListener : public LLSimpleListener | ||
2068 | { | ||
2069 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2070 | { | ||
2071 | gGL.setClever(event->getValue().asBoolean()); | ||
2072 | return true; | ||
2073 | } | ||
2074 | }; | ||
2075 | static LLRenderUseCleverUIListener render_use_clever_ui_listener; | ||
2076 | |||
2077 | class LLRenderResolutionDivisorListener : public LLSimpleListener | ||
2078 | { | ||
2079 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
2080 | { | ||
2081 | gResizeScreenTexture = TRUE; | ||
2082 | return true; | ||
2083 | } | ||
2084 | }; | ||
2085 | static LLRenderResolutionDivisorListener render_resolution_divisor_listener; | ||
2086 | //////////////////////////////////////////////////////////////////////////// | ||
2087 | |||
2088 | void settings_setup_listeners() | ||
2089 | { | ||
2090 | gSavedSettings.getControl("FirstPersonAvatarVisible")->addListener(&render_avatar_mouselook_listener); | ||
2091 | gSavedSettings.getControl("MouseSensitivity")->addListener(&mouse_sensitivity_listener); | ||
2092 | gSavedSettings.getControl("InvertMouse")->addListener(&invert_mouse_listener); | ||
2093 | gSavedSettings.getControl("AFKTimeout")->addListener(&afk_timeout_listener); | ||
2094 | gSavedSettings.getControl("RenderFarClip")->addListener(&render_far_clip_listener); | ||
2095 | gSavedSettings.getControl("RenderTerrainDetail")->addListener(&terrain_detail_listener); | ||
2096 | gSavedSettings.getControl("RenderAvatarVP")->addListener(&set_shader_listener); | ||
2097 | gSavedSettings.getControl("VertexShaderEnable")->addListener(&set_shader_listener); | ||
2098 | gSavedSettings.getControl("RenderDynamicReflections")->addListener(&set_shader_listener); | ||
2099 | gSavedSettings.getControl("RenderGlow")->addListener(&release_gl_buffer_listener); | ||
2100 | gSavedSettings.getControl("RenderGlow")->addListener(&set_shader_listener); | ||
2101 | gSavedSettings.getControl("EnableRippleWater")->addListener(&set_shader_listener); | ||
2102 | gSavedSettings.getControl("RenderGlowResolutionPow")->addListener(&release_gl_buffer_listener); | ||
2103 | gSavedSettings.getControl("RenderAvatarCloth")->addListener(&set_shader_listener); | ||
2104 | gSavedSettings.getControl("WindLightUseAtmosShaders")->addListener(&set_shader_listener); | ||
2105 | gSavedSettings.getControl("RenderGammaFull")->addListener(&set_shader_listener); | ||
2106 | gSavedSettings.getControl("RenderVolumeLODFactor")->addListener(&volume_lod_listener); | ||
2107 | gSavedSettings.getControl("RenderAvatarLODFactor")->addListener(&avatar_lod_listener); | ||
2108 | gSavedSettings.getControl("RenderTerrainLODFactor")->addListener(&terrain_lod_listener); | ||
2109 | gSavedSettings.getControl("RenderTreeLODFactor")->addListener(&tree_lod_listener); | ||
2110 | gSavedSettings.getControl("RenderFlexTimeFactor")->addListener(&flex_lod_listener); | ||
2111 | gSavedSettings.getControl("ThrottleBandwidthKBPS")->addListener(&bandwidth_listener); | ||
2112 | gSavedSettings.getControl("RenderGamma")->addListener(&gamma_listener); | ||
2113 | gSavedSettings.getControl("RenderFogRatio")->addListener(&fog_ratio_listener); | ||
2114 | gSavedSettings.getControl("RenderMaxPartCount")->addListener(&max_partCount_listener); | ||
2115 | gSavedSettings.getControl("RenderDynamicLOD")->addListener(&render_dynamic_lod_listener); | ||
2116 | gSavedSettings.getControl("RenderDebugTextureBind")->addListener(&reset_vbo_listener); | ||
2117 | gSavedSettings.getControl("RenderFastAlpha")->addListener(&reset_vbo_listener); | ||
2118 | gSavedSettings.getControl("RenderObjectBump")->addListener(&reset_vbo_listener); | ||
2119 | gSavedSettings.getControl("RenderMaxVBOSize")->addListener(&reset_vbo_listener); | ||
2120 | gSavedSettings.getControl("RenderUseFBO")->addListener(&render_use_fbo_listener); | ||
2121 | gSavedSettings.getControl("RenderUseImpostors")->addListener(&render_use_impostors_listener); | ||
2122 | gSavedSettings.getControl("RenderUseCleverUI")->addListener(&render_use_clever_ui_listener); | ||
2123 | gSavedSettings.getControl("RenderResolutionDivisor")->addListener(&render_resolution_divisor_listener); | ||
2124 | gSavedSettings.getControl("AvatarCompositeLimit")->addListener(&composite_limit_listener); | ||
2125 | gSavedSettings.getControl("TextureMemory")->addListener(&video_memory_listener); | ||
2126 | gSavedSettings.getControl("ChatFontSize")->addListener(&chat_font_size_listener); | ||
2127 | gSavedSettings.getControl("ChatPersistTime")->addListener(&chat_persist_time_listener); | ||
2128 | gSavedSettings.getControl("ConsoleMaxLines")->addListener(&console_max_lines_listener); | ||
2129 | gSavedSettings.getControl("UseOcclusion")->addListener(&use_occlusion_listener); | ||
2130 | gSavedSettings.getControl("AudioLevelMaster")->addListener(&audio_listener); | ||
2131 | gSavedSettings.getControl("AudioLevelSFX")->addListener(&audio_listener); | ||
2132 | gSavedSettings.getControl("AudioLevelUI")->addListener(&audio_listener); | ||
2133 | gSavedSettings.getControl("AudioLevelAmbient")->addListener(&audio_listener); | ||
2134 | gSavedSettings.getControl("AudioLevelMusic")->addListener(&audio_listener); | ||
2135 | gSavedSettings.getControl("AudioLevelMedia")->addListener(&audio_listener); | ||
2136 | gSavedSettings.getControl("AudioLevelVoice")->addListener(&audio_listener); | ||
2137 | gSavedSettings.getControl("AudioLevelDistance")->addListener(&audio_listener); | ||
2138 | gSavedSettings.getControl("AudioLevelDoppler")->addListener(&audio_listener); | ||
2139 | gSavedSettings.getControl("AudioLevelRolloff")->addListener(&audio_listener); | ||
2140 | gSavedSettings.getControl("AudioStreamingMusic")->addListener(&audio_stream_music_listener); | ||
2141 | // AudioStreamingVideo initialized in llviewermedia.cpp | ||
2142 | gSavedSettings.getControl("MuteAudio")->addListener(&audio_listener); | ||
2143 | gSavedSettings.getControl("MuteMusic")->addListener(&audio_listener); | ||
2144 | gSavedSettings.getControl("MuteMedia")->addListener(&audio_listener); | ||
2145 | gSavedSettings.getControl("MuteVoice")->addListener(&audio_listener); | ||
2146 | gSavedSettings.getControl("MuteAmbient")->addListener(&audio_listener); | ||
2147 | gSavedSettings.getControl("MuteUI")->addListener(&audio_listener); | ||
2148 | gSavedSettings.getControl("RenderVBOEnable")->addListener(&render_use_vbo_listener); | ||
2149 | gSavedSettings.getControl("WLSkyDetail")->addListener(&wl_sky_detail_listener); | ||
2150 | gSavedSettings.getControl("RenderLightingDetail")->addListener(&render_lighting_detail_listener); | ||
2151 | gSavedSettings.getControl("NumpadControl")->addListener(&numpad_control_listener); | ||
2152 | gSavedSettings.getControl("FlycamAxis0")->addListener(&joystick_listener); | ||
2153 | gSavedSettings.getControl("FlycamAxis1")->addListener(&joystick_listener); | ||
2154 | gSavedSettings.getControl("FlycamAxis2")->addListener(&joystick_listener); | ||
2155 | gSavedSettings.getControl("FlycamAxis3")->addListener(&joystick_listener); | ||
2156 | gSavedSettings.getControl("FlycamAxis4")->addListener(&joystick_listener); | ||
2157 | gSavedSettings.getControl("FlycamAxis5")->addListener(&joystick_listener); | ||
2158 | gSavedSettings.getControl("FlycamAxis6")->addListener(&joystick_listener); | ||
2159 | } | ||