aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcontroldef.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llcontroldef.cpp29
1 files changed, 23 insertions, 6 deletions
diff --git a/linden/indra/newview/llcontroldef.cpp b/linden/indra/newview/llcontroldef.cpp
index f2c79b7..23a1753 100644
--- a/linden/indra/newview/llcontroldef.cpp
+++ b/linden/indra/newview/llcontroldef.cpp
@@ -13,12 +13,12 @@
13 * ("GPL"), unless you have obtained a separate licensing agreement 13 * ("GPL"), unless you have obtained a separate licensing agreement
14 * ("Other License"), formally executed by you and Linden Lab. Terms of 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 15 * the GPL can be found in doc/GPL-license.txt in this distribution, or
16 * online at http://secondlife.com/developers/opensource/gplv2 16 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
17 * 17 *
18 * There are special exceptions to the terms and conditions of the GPL as 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 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 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlife.com/developers/opensource/flossexception 21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 22 *
23 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -164,6 +164,8 @@ void declare_settings()
164 gSavedSettings.declareS32("ButtonVPad", 1, "Default vertical spacing between buttons (pixels)"); // space from bottom of button to text 164 gSavedSettings.declareS32("ButtonVPad", 1, "Default vertical spacing between buttons (pixels)"); // space from bottom of button to text
165 gSavedSettings.declareS32("ButtonHeightSmall", 16, "Default height for small buttons (pixels)"); 165 gSavedSettings.declareS32("ButtonHeightSmall", 16, "Default height for small buttons (pixels)");
166 gSavedSettings.declareS32("ButtonHeight", 20, "Default height for normal buttons (pixels)"); 166 gSavedSettings.declareS32("ButtonHeight", 20, "Default height for normal buttons (pixels)");
167 gSavedSettings.declareF32("ButtonFlashRate", 2.f, "Frequency at which buttons flash (hz)");
168 gSavedSettings.declareS32("ButtonFlashCount", 3, "Number of flashes after which flashing buttons stay lit up");
167 //gSavedSettings.declareS32("ButtonHeightToolbar", 32, "[NOT USED]"); 169 //gSavedSettings.declareS32("ButtonHeightToolbar", 32, "[NOT USED]");
168 170
169 //gSavedSettings.declareS32("DefaultButtonWidth", DEFAULT_BUTTON_WIDTH, "[NOT USED]"); 171 //gSavedSettings.declareS32("DefaultButtonWidth", DEFAULT_BUTTON_WIDTH, "[NOT USED]");
@@ -269,9 +271,10 @@ void declare_settings()
269 271
270 gSavedSettings.declareBOOL("ChatShowTimestamps", TRUE, "Show timestamps in chat"); 272 gSavedSettings.declareBOOL("ChatShowTimestamps", TRUE, "Show timestamps in chat");
271 273
272 gSavedSettings.declareBOOL("EnableVoiceChat", FALSE, "Enable talking to other residents with a microphone"); 274 gSavedSettings.declareBOOL("EnableVoiceChat", TRUE, "Enable talking to other residents with a microphone");
273 gSavedSettings.declareBOOL("VoiceCallsFriendsOnly", FALSE, "Only accept voice calls from residents on your friends list"); 275 gSavedSettings.declareBOOL("VoiceCallsFriendsOnly", FALSE, "Only accept voice calls from residents on your friends list");
274 gSavedSettings.declareBOOL("PTTCurrentlyEnabled", TRUE, "", NO_PERSIST); 276 gSavedSettings.declareBOOL("PTTCurrentlyEnabled", TRUE, "", NO_PERSIST);
277 gSavedSettings.declareBOOL("ShowVoiceChannelPopup", FALSE, "Controls visibility of the current voice channel popup above the voice tab");
275 gSavedSettings.declareBOOL("EnablePushToTalk", TRUE, "Must hold down a key or moouse button when talking into your microphone"); 278 gSavedSettings.declareBOOL("EnablePushToTalk", TRUE, "Must hold down a key or moouse button when talking into your microphone");
276 gSavedSettings.declareString("PushToTalkButton", "MiddleMouse", "Which button or keyboard key is used for push-to-talk"); 279 gSavedSettings.declareString("PushToTalkButton", "MiddleMouse", "Which button or keyboard key is used for push-to-talk");
277 gSavedSettings.declareBOOL("PushToTalkToggle", FALSE, "Should the push-to-talk button behave as a toggle"); 280 gSavedSettings.declareBOOL("PushToTalkToggle", FALSE, "Should the push-to-talk button behave as a toggle");
@@ -523,6 +526,7 @@ void declare_settings()
523 gSavedSettings.declareBOOL("CloseChatOnReturn", FALSE, "Close chat after hitting return"); 526 gSavedSettings.declareBOOL("CloseChatOnReturn", FALSE, "Close chat after hitting return");
524 527
525 // Copy IM messages into chat history 528 // Copy IM messages into chat history
529 gSavedSettings.declareBOOL("ContactsTornOff", FALSE, "Show contacts window separately from Communicate window.");
526 gSavedSettings.declareBOOL("ChatHistoryTornOff", FALSE, "Show chat history window separately from Communicate window."); 530 gSavedSettings.declareBOOL("ChatHistoryTornOff", FALSE, "Show chat history window separately from Communicate window.");
527 gSavedSettings.declareBOOL("IMInChatHistory", FALSE, "Copy IM into chat history"); 531 gSavedSettings.declareBOOL("IMInChatHistory", FALSE, "Copy IM into chat history");
528 gSavedSettings.declareBOOL("IMShowTimestamps", TRUE, "Show timestamps in IM"); 532 gSavedSettings.declareBOOL("IMShowTimestamps", TRUE, "Show timestamps in IM");
@@ -950,6 +954,7 @@ void declare_settings()
950 // Rectangle should almost fill the bottom of the screen on 800x600 954 // Rectangle should almost fill the bottom of the screen on 800x600
951 // Note that the saved rect size is the size with history shown. 955 // Note that the saved rect size is the size with history shown.
952 gSavedSettings.declareRect("FloaterChatRect", LLRect( 0, 10*16 + 12, 500, 0 ), "Rectangle for chat history"); 956 gSavedSettings.declareRect("FloaterChatRect", LLRect( 0, 10*16 + 12, 500, 0 ), "Rectangle for chat history");
957 gSavedSettings.declareRect("FloaterContactsRect", LLRect( 0, 390, 395, 0 ), "Rectangle for chat history");
953 gSavedSettings.declareRect("FloaterMuteRect3", LLRect( 0, 300, 300, 0), "Rectangle for mute window"); 958 gSavedSettings.declareRect("FloaterMuteRect3", LLRect( 0, 300, 300, 0), "Rectangle for mute window");
954 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."); 959 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.");
955 gSavedPerAccountSettings.declareString("InstantMessageLogPath", "", "Path to your log files."); 960 gSavedPerAccountSettings.declareString("InstantMessageLogPath", "", "Path to your log files.");
@@ -1146,6 +1151,7 @@ void declare_settings()
1146 gSavedSettings.declareRect("HtmlFindRect", LLRect(16,650,600,128), "Rectangle for HTML find window"); 1151 gSavedSettings.declareRect("HtmlFindRect", LLRect(16,650,600,128), "Rectangle for HTML find window");
1147 1152
1148 // Audio 1153 // Audio
1154 gSavedSettings.declareBOOL("ShowVolumeSettingsPopup", FALSE, "Show individual volume slider for voice, sound effects, etc");
1149 gSavedSettings.declareF32("AudioLevelMaster", 1.0f, "Master audio level, or overall volume"); 1155 gSavedSettings.declareF32("AudioLevelMaster", 1.0f, "Master audio level, or overall volume");
1150 gSavedSettings.declareF32("AudioLevelSFX", 1.0f, "Audio level of in-world sound effects"); 1156 gSavedSettings.declareF32("AudioLevelSFX", 1.0f, "Audio level of in-world sound effects");
1151 gSavedSettings.declareF32("AudioLevelAmbient",0.5f, "Audio level of environment sounds"); 1157 gSavedSettings.declareF32("AudioLevelAmbient",0.5f, "Audio level of environment sounds");
@@ -1161,7 +1167,6 @@ void declare_settings()
1161 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)"); 1167 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)");
1162 gSavedSettings.declareF32("AudioLevelRolloff", 1.0f, "Controls the distance-based dropoff of audio volume (fraction or multiple of default audio rolloff)"); 1168 gSavedSettings.declareF32("AudioLevelRolloff", 1.0f, "Controls the distance-based dropoff of audio volume (fraction or multiple of default audio rolloff)");
1163 1169
1164 gSavedSettings.declareS32("AudioDefaultBitrate", 64, "Data streaming rate of uploaded audio samples (thousands of bits per second)");
1165 gSavedSettings.declareBOOL("AudioStreamingMusic", FALSE, "Enable streaming audio"); 1170 gSavedSettings.declareBOOL("AudioStreamingMusic", FALSE, "Enable streaming audio");
1166 gSavedSettings.declareBOOL("AudioStreamingVideo", FALSE, "Enable streaming video"); 1171 gSavedSettings.declareBOOL("AudioStreamingVideo", FALSE, "Enable streaming video");
1167 1172
@@ -1293,6 +1298,13 @@ void declare_settings()
1293 gSavedSettings.declareBOOL("MuteAudio", FALSE, "All audio plays at 0 volume (streaming audio still takes up bandwidth, for example)"); 1298 gSavedSettings.declareBOOL("MuteAudio", FALSE, "All audio plays at 0 volume (streaming audio still takes up bandwidth, for example)");
1294 gSavedSettings.declareBOOL("MuteWhenMinimized", TRUE, "Mute audio when SL window is minimized"); 1299 gSavedSettings.declareBOOL("MuteWhenMinimized", TRUE, "Mute audio when SL window is minimized");
1295 1300
1301 gSavedSettings.declareBOOL("MuteMusic", FALSE, "Music plays at 0 volume (streaming audio still takes up bandwidth)");
1302 gSavedSettings.declareBOOL("MuteMedia", FALSE, "Media plays at 0 volume (streaming audio still takes up bandwidth)");
1303 gSavedSettings.declareBOOL("MuteVoice", FALSE, "Voice plays at 0 volume (streaming audio still takes up bandwidth)");
1304 gSavedSettings.declareBOOL("MuteSounds", FALSE, "Sound effects play at 0 volume");
1305 gSavedSettings.declareBOOL("MuteAmbient", FALSE, "Ambient sound effects, such as wind noise, play at 0 volume");
1306 gSavedSettings.declareBOOL("MuteUI", FALSE, "UI sound effects play at 0 volume");
1307
1296 gSavedSettings.declareS32("NotifyBoxWidth", 350, "Width of notification messages"); 1308 gSavedSettings.declareS32("NotifyBoxWidth", 350, "Width of notification messages");
1297 gSavedSettings.declareS32("NotifyBoxHeight", 200, "Height of notification messages"); 1309 gSavedSettings.declareS32("NotifyBoxHeight", 200, "Height of notification messages");
1298 1310
@@ -1936,8 +1948,8 @@ void settings_setup_listeners()
1936 gSavedSettings.getControl("ConsoleMaxLines")->addListener(&console_max_lines_listener); 1948 gSavedSettings.getControl("ConsoleMaxLines")->addListener(&console_max_lines_listener);
1937 gSavedSettings.getControl("UseOcclusion")->addListener(&use_occlusion_listener); 1949 gSavedSettings.getControl("UseOcclusion")->addListener(&use_occlusion_listener);
1938 gSavedSettings.getControl("AudioLevelMaster")->addListener(&audio_listener); 1950 gSavedSettings.getControl("AudioLevelMaster")->addListener(&audio_listener);
1939// gSavedSettings.getControl("AudioLevelSFX")->addListener(&audio_volume_listener); // no need for listener 1951 gSavedSettings.getControl("AudioLevelSFX")->addListener(&audio_listener);
1940// gSavedSettings.getControl("AudioLevelUI")->addListener(&audio_volume_listener); // no need for listener 1952 gSavedSettings.getControl("AudioLevelUI")->addListener(&audio_listener);
1941 gSavedSettings.getControl("AudioLevelAmbient")->addListener(&audio_listener); 1953 gSavedSettings.getControl("AudioLevelAmbient")->addListener(&audio_listener);
1942 gSavedSettings.getControl("AudioLevelMusic")->addListener(&audio_listener); 1954 gSavedSettings.getControl("AudioLevelMusic")->addListener(&audio_listener);
1943 gSavedSettings.getControl("AudioLevelMedia")->addListener(&audio_listener); 1955 gSavedSettings.getControl("AudioLevelMedia")->addListener(&audio_listener);
@@ -1948,6 +1960,11 @@ void settings_setup_listeners()
1948 gSavedSettings.getControl("AudioStreamingMusic")->addListener(&audio_stream_music_listener); 1960 gSavedSettings.getControl("AudioStreamingMusic")->addListener(&audio_stream_music_listener);
1949 gSavedSettings.getControl("AudioStreamingVideo")->addListener(&audio_stream_media_listener); 1961 gSavedSettings.getControl("AudioStreamingVideo")->addListener(&audio_stream_media_listener);
1950 gSavedSettings.getControl("MuteAudio")->addListener(&audio_listener); 1962 gSavedSettings.getControl("MuteAudio")->addListener(&audio_listener);
1963 gSavedSettings.getControl("MuteMusic")->addListener(&audio_listener);
1964 gSavedSettings.getControl("MuteMedia")->addListener(&audio_listener);
1965 gSavedSettings.getControl("MuteVoice")->addListener(&audio_listener);
1966 gSavedSettings.getControl("MuteAmbient")->addListener(&audio_listener);
1967 gSavedSettings.getControl("MuteUI")->addListener(&audio_listener);
1951 gSavedSettings.getControl("RenderVBOEnable")->addListener(&render_use_vbo_listener); 1968 gSavedSettings.getControl("RenderVBOEnable")->addListener(&render_use_vbo_listener);
1952 gSavedSettings.getControl("RenderLightingDetail")->addListener(&render_lighting_detail_listener); 1969 gSavedSettings.getControl("RenderLightingDetail")->addListener(&render_lighting_detail_listener);
1953 gSavedSettings.getControl("NumpadControl")->addListener(&numpad_control_listener); 1970 gSavedSettings.getControl("NumpadControl")->addListener(&numpad_control_listener);