diff options
-rw-r--r-- | linden/indra/newview/llpanelaudiovolume.cpp | 7 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_audio.xml | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelaudiovolume.cpp b/linden/indra/newview/llpanelaudiovolume.cpp index e23fc28..5045e8f 100644 --- a/linden/indra/newview/llpanelaudiovolume.cpp +++ b/linden/indra/newview/llpanelaudiovolume.cpp | |||
@@ -54,6 +54,7 @@ BOOL LLPanelAudioVolume::postBuild() | |||
54 | childSetCommitCallback("SFX Volume", onCommitVolumeChange); | 54 | childSetCommitCallback("SFX Volume", onCommitVolumeChange); |
55 | childSetCommitCallback("UI Volume", onCommitVolumeChange); | 55 | childSetCommitCallback("UI Volume", onCommitVolumeChange); |
56 | childSetCommitCallback("Wind Volume", onCommitVolumeChange); | 56 | childSetCommitCallback("Wind Volume", onCommitVolumeChange); |
57 | childSetCommitCallback("Gestures Volume", onCommitVolumeChange); | ||
57 | return TRUE; | 58 | return TRUE; |
58 | } | 59 | } |
59 | 60 | ||
@@ -74,6 +75,7 @@ void LLPanelAudioVolume::draw() | |||
74 | childSetEnabled("SFX Volume", enable); | 75 | childSetEnabled("SFX Volume", enable); |
75 | childSetEnabled("UI Volume", enable); | 76 | childSetEnabled("UI Volume", enable); |
76 | childSetEnabled("Wind Volume", enable); | 77 | childSetEnabled("Wind Volume", enable); |
78 | childSetEnabled("Gestures Volume", enable); | ||
77 | 79 | ||
78 | childSetEnabled("mute_music", enable); | 80 | childSetEnabled("mute_music", enable); |
79 | childSetEnabled("mute_media", enable); | 81 | childSetEnabled("mute_media", enable); |
@@ -81,6 +83,7 @@ void LLPanelAudioVolume::draw() | |||
81 | childSetEnabled("mute_sfx", enable); | 83 | childSetEnabled("mute_sfx", enable); |
82 | childSetEnabled("mute_wind", enable); | 84 | childSetEnabled("mute_wind", enable); |
83 | childSetEnabled("mute_ui", enable); | 85 | childSetEnabled("mute_ui", enable); |
86 | childSetEnabled("mute_gestures", enable); | ||
84 | 87 | ||
85 | LLPanel::draw(); | 88 | LLPanel::draw(); |
86 | } | 89 | } |
@@ -118,6 +121,10 @@ void LLPanelAudioVolume::onCommitVolumeChange(LLUICtrl* ctrl, void* user_data) | |||
118 | { | 121 | { |
119 | gSavedSettings.setBOOL("MuteVoice", FALSE); | 122 | gSavedSettings.setBOOL("MuteVoice", FALSE); |
120 | } | 123 | } |
124 | else if (control_name == "AudioLevelGestures") | ||
125 | { | ||
126 | gSavedSettings.setBOOL("MuteGestures", FALSE); | ||
127 | } | ||
121 | } | 128 | } |
122 | 129 | ||
123 | 130 | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_audio.xml b/linden/indra/newview/skins/default/xui/en-us/panel_audio.xml index c6e75fc..1cac60a 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_audio.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_audio.xml | |||
@@ -51,7 +51,7 @@ | |||
51 | left="150" name="mute_wind" tab_stop="false" toggle="true" width="25" /> | 51 | left="150" name="mute_wind" tab_stop="false" toggle="true" width="25" /> |
52 | <slider bottom_delta="-20" control_name="AudioLevelGestures" follows="left|top|right" | 52 | <slider bottom_delta="-20" control_name="AudioLevelGestures" follows="left|top|right" |
53 | height="15" increment="0.05" initial_val="0.5" label="Gestures:" | 53 | height="15" increment="0.05" initial_val="0.5" label="Gestures:" |
54 | label_width="55" left="10" max_val="1" min_val="0" name="Gestures" | 54 | label_width="55" left="10" max_val="1" min_val="0" name="Gestures Volume" |
55 | show_text="false" volume="true" width="180" /> | 55 | show_text="false" volume="true" width="180" /> |
56 | <button bottom_delta="0" control_name="MuteGestures" follows="top|right" height="16" | 56 | <button bottom_delta="0" control_name="MuteGestures" follows="top|right" height="16" |
57 | image_selected="icn_speaker-muted_dark.tga" | 57 | image_selected="icn_speaker-muted_dark.tga" |