diff --git a/indra/newview/llprefsvoice.cpp b/indra/newview/llprefsvoice.cpp index c26fcb724..275778de4 100644 --- a/indra/newview/llprefsvoice.cpp +++ b/indra/newview/llprefsvoice.cpp @@ -41,6 +41,7 @@ #include "llkeyboard.h" #include "llmodaldialog.h" #include "llpanelvoicedevicesettings.h" +#include "lltrans.h" #include "lluictrlfactory.h" @@ -133,6 +134,12 @@ BOOL LLPrefsVoice::postBuild() childSetValue("enable_voice_check", enable); onCommitEnableVoiceChat(getChild("enable_voice_check"), this); + if (LLCheckBoxCtrl* check = getChild("enable_multivoice_check")) + { + check->setValue(gSavedSettings.getBOOL("VoiceMultiInstance")); + check->setLabel(getString("multivoice_label", LLTrans::getDefaultArgs())); + } + childSetValue("modifier_combo", gSavedSettings.getString("PushToTalkButton")); childSetValue("voice_call_friends_only_check", gSavedSettings.getBOOL("VoiceCallsFriendsOnly")); childSetValue("auto_disengage_mic_check", gSavedSettings.getBOOL("AutoDisengageMic")); @@ -151,6 +158,7 @@ void LLPrefsVoice::apply() gSavedSettings.setBOOL("PushToTalkToggle", childGetValue("push_to_talk_toggle_check")); gSavedSettings.setS32("VoiceEarLocation", childGetValue("ear_location")); gSavedSettings.setBOOL("LipSyncEnabled", childGetValue("enable_lip_sync_check")); + gSavedSettings.setBOOL("VoiceMultiInstance", childGetValue("enable_multivoice_check")); if (LLPanelVoiceDeviceSettings* voice_device_settings = getChild("device_settings_panel")) { diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_voice.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_voice.xml index c2a19cd39..c25f36291 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_voice.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_voice.xml @@ -2,6 +2,8 @@ Voice Chat Is Not Available + + Hear Voice Chat from camera position. Hear Voice Chat from avatar position.