aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llpanelaudioprefs.cpp8
-rw-r--r--linden/indra/newview/llpanelaudioprefs.h2
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml4
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_audio.xml42
5 files changed, 35 insertions, 23 deletions
diff --git a/linden/indra/newview/llpanelaudioprefs.cpp b/linden/indra/newview/llpanelaudioprefs.cpp
index 7ad8712..2bb3ab4 100644
--- a/linden/indra/newview/llpanelaudioprefs.cpp
+++ b/linden/indra/newview/llpanelaudioprefs.cpp
@@ -91,6 +91,7 @@ BOOL LLPanelAudioPrefs::postBuild()
91{ 91{
92 refreshValues(); // initialize member data from saved settings 92 refreshValues(); // initialize member data from saved settings
93 childSetLabelArg("L$ Change Threshold", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); 93 childSetLabelArg("L$ Change Threshold", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol());
94 childSetValue("mute_wind_check", !gSavedSettings.getBOOL("MuteWind"));
94 95
95 return TRUE; 96 return TRUE;
96} 97}
@@ -117,6 +118,13 @@ void LLPanelAudioPrefs::refreshValues()
117 mPreviousMuteWhenMinimized = gSavedSettings.getBOOL("MuteWhenMinimized"); 118 mPreviousMuteWhenMinimized = gSavedSettings.getBOOL("MuteWhenMinimized");
118} 119}
119 120
121void LLPanelAudioPrefs::apply()
122{
123 refreshValues();
124
125 gSavedSettings.setBOOL("MuteWind", !(BOOL)(childGetValue("mute_wind_check").asBoolean()));
126}
127
120void LLPanelAudioPrefs::cancel() 128void LLPanelAudioPrefs::cancel()
121{ 129{
122 gSavedSettings.setF32("AudioLevelMaster", mPreviousVolume ); 130 gSavedSettings.setF32("AudioLevelMaster", mPreviousVolume );
diff --git a/linden/indra/newview/llpanelaudioprefs.h b/linden/indra/newview/llpanelaudioprefs.h
index 08009c9..21d2f59 100644
--- a/linden/indra/newview/llpanelaudioprefs.h
+++ b/linden/indra/newview/llpanelaudioprefs.h
@@ -48,7 +48,7 @@ public:
48 LLPanelAudioPrefs(); 48 LLPanelAudioPrefs();
49 virtual ~LLPanelAudioPrefs(); 49 virtual ~LLPanelAudioPrefs();
50 50
51 void apply() { refreshValues(); } 51 void apply();
52 void cancel(); // Cancel the changed values. 52 void cancel(); // Cancel the changed values.
53 53
54 virtual BOOL postBuild(); 54 virtual BOOL postBuild();
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index a4c0dc2..d96f97e 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -61,7 +61,6 @@ BOOL LLPrefsAdvanced::postBuild()
61 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); 61 childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez"));
62 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); 62 childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval"));
63 childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); 63 childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate"));
64 childSetValue("mute_wind_check", !gSavedSettings.getBOOL("MuteWind"));
65 64
66 refresh(); 65 refresh();
67 66
@@ -77,7 +76,6 @@ void LLPrefsAdvanced::apply()
77 gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check")); 76 gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
78 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); 77 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal());
79 gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); 78 gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check"));
80 gSavedSettings.setBOOL("MuteWind", !(BOOL)(childGetValue("mute_wind_check").asBoolean()));
81 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check")); 79 gSavedSettings.setBOOL("UseServersideWindlightSettings", childGetValue("windlight_check"));
82 80
83 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC 81 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
index d1a7489..6766cf3 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
@@ -52,10 +52,6 @@
52 tool_tip="Toggle editing animation and standing up when entering appearance mode" 52 tool_tip="Toggle editing animation and standing up when entering appearance mode"
53 label="Animate avatar when editing appearance" left="12" mouse_opaque="true" 53 label="Animate avatar when editing appearance" left="12" mouse_opaque="true"
54 name="appearance_anim_check" radio_style="false" width="217" /> 54 name="appearance_anim_check" radio_style="false" width="217" />
55 <check_box bottom_delta="-25" enabled="true" follows="left|top"
56 font="SansSerifSmall" height="16" initial_value="false"
57 label="Enable wind" left="12" mouse_opaque="true"
58 name="mute_wind_check" radio_style="false" width="217" />
59 55
60 <button bottom="5" follows="left|top" font="SansSerifSmall" height="20" width="250" 56 <button bottom="5" follows="left|top" font="SansSerifSmall" height="20" width="250"
61 label="Reset All Preferences To Default" name="reset_btn" left="12" 57 label="Reset All Preferences To Default" name="reset_btn" left="12"
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_audio.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_audio.xml
index 3f8b99a..400da56 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_audio.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_audio.xml
@@ -9,13 +9,13 @@
9 Volume: 9 Volume:
10 </text> 10 </text>
11 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 11 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
12 bottom="-215" drop_shadow_visible="true" enabled="true" follows="left|top" 12 bottom="-190" drop_shadow_visible="true" enabled="true" follows="left|top"
13 font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" 13 font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10"
14 mouse_opaque="true" name="streaming_prefs_text" v_pad="0" width="128"> 14 mouse_opaque="true" name="streaming_prefs_text" v_pad="0" width="128">
15 Streaming: 15 Streaming:
16 </text> 16 </text>
17 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 17 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
18 bottom="-300" drop_shadow_visible="true" enabled="true" follows="left|top" 18 bottom="-285" drop_shadow_visible="true" enabled="true" follows="left|top"
19 font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" 19 font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10"
20 mouse_opaque="true" name="audio_prefs_text" v_pad="0" width="128"> 20 mouse_opaque="true" name="audio_prefs_text" v_pad="0" width="128">
21 Audio: 21 Audio:
@@ -23,7 +23,7 @@
23 <panel border="true" bottom="-195" enabled="true" filename="panel_audio.xml" 23 <panel border="true" bottom="-195" enabled="true" filename="panel_audio.xml"
24 follows="left|top|right|bottom" height="180" label="Volume" left="148" 24 follows="left|top|right|bottom" height="180" label="Volume" left="148"
25 mouse_opaque="true" name="Volume Panel" width="260" /> 25 mouse_opaque="true" name="Volume Panel" width="260" />
26 <check_box bottom="-220" control_name="AudioStreamingMusic" enabled="true" 26 <check_box bottom="-195" control_name="AudioStreamingMusic" enabled="true"
27 follows="left|top" font="SansSerifSmall" height="16" initial_value="true" 27 follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
28 label="Play streaming music when available (uses more bandwidth)" 28 label="Play streaming music when available (uses more bandwidth)"
29 left="142" mouse_opaque="true" name="streaming_music" radio_style="false" 29 left="142" mouse_opaque="true" name="streaming_music" radio_style="false"
@@ -42,28 +42,38 @@
42 initial_value="true" label="Automatically play media" left="162" 42 initial_value="true" label="Automatically play media" left="162"
43 mouse_opaque="true" name="auto_streaming_video" radio_style="false" 43 mouse_opaque="true" name="auto_streaming_video" radio_style="false"
44 width="338" /> 44 width="338" />
45 <check_box bottom_delta="-25" control_name="MuteWhenMinimized" enabled="true" 45 <check_box bottom_delta="-34" control_name="MuteWhenMinimized" enabled="true"
46 follows="left|top" font="SansSerifSmall" height="16" initial_value="true" 46 follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
47 label="Mute audio when window minimized" left="142" mouse_opaque="true" 47 label="Mute audio when window minimized" left="142" mouse_opaque="true"
48 name="mute_when_minimized" radio_style="false" width="215" /> 48 name="mute_when_minimized" radio_style="false" width="215" />
49 <slider bottom_delta="-25" control_name="AudioLevelDoppler" edit_text="true" 49 <spinner bottom_delta="-20" control_name="UISndMoneyChangeThreshold" decimal_digits="0"
50 enabled="true" follows="left|top" height="15" increment="0.1"
51 initial_val="1" label="Doppler effect:" label_width="100" left="148"
52 max_val="2" min_val="0" mouse_opaque="true" name="Doppler Effect"
53 show_text="true" width="250" />
54 <slider bottom_delta="-20" control_name="AudioLevelRolloff" edit_text="true"
55 enabled="true" follows="left|top" height="15" increment="0.1"
56 initial_val="1" label="Rolloff factor:" label_width="100" left="148"
57 max_val="2" min_val="0" mouse_opaque="true" name="Rolloff Factor"
58 show_text="true" width="250" />
59 <spinner bottom_delta="-25" control_name="UISndMoneyChangeThreshold" decimal_digits="0"
60 enabled="true" follows="left|top" height="16" increment="10" 50 enabled="true" follows="left|top" height="16" increment="10"
61 initial_val="10" label="[CURRENCY] change threshold:" label_width="158" left="148" 51 initial_val="10" label="[CURRENCY] change threshold:" label_width="158" left="148"
62 max_val="10000" min_val="0" mouse_opaque="true" name="L$ Change Threshold" 52 max_val="10000" min_val="0" mouse_opaque="true" name="L$ Change Threshold"
63 width="212" /> 53 width="212" />
64 <spinner bottom_delta="-20" control_name="UISndHealthReductionThreshold" 54 <spinner bottom_delta="-20" control_name="UISndHealthReductionThreshold"
65 decimal_digits="0" enabled="true" follows="left|top" height="16" 55 decimal_digits="0" enabled="true" follows="left|top" height="16"
66 increment="10" initial_val="20" label="Health change threshold:" 56 increment="10" initial_val="20" label="Health change threshold:"
67 label_width="158" left="148" max_val="10000" min_val="0" 57 label_width="158" left="148" max_val="10000" min_val="0"
68 mouse_opaque="true" name="Health change threshold" width="212" /> 58 mouse_opaque="true" name="Health change threshold" width="212" />
59 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
60 bottom_delta="-30" drop_shadow_visible="true" enabled="true" follows="left|top"
61 font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10"
62 mouse_opaque="true" name="ambient_prefs_text" v_pad="0" width="128">
63 Ambient:
64 </text>
65 <check_box bottom_delta="-4" enabled="true" follows="left|top"
66 font="SansSerifSmall" height="16" initial_value="false"
67 label="Enable wind generation" left="142" mouse_opaque="true"
68 name="mute_wind_check" radio_style="false" width="217" />
69 <slider bottom_delta="-20" control_name="AudioLevelDoppler" edit_text="true"
70 enabled="true" follows="left|top" height="15" increment="0.1"
71 initial_val="1" label="Doppler effect:" label_width="100" left="148"
72 max_val="2" min_val="0" mouse_opaque="true" name="Doppler Effect"
73 show_text="true" width="250" />
74 <slider bottom_delta="-20" control_name="AudioLevelRolloff" edit_text="true"
75 enabled="true" follows="left|top" height="15" increment="0.1"
76 initial_val="1" label="Rolloff factor:" label_width="100" left="148"
77 max_val="2" min_val="0" mouse_opaque="true" name="Rolloff Factor"
78 show_text="true" width="250" />
69</panel> 79</panel>