From 40e240fe61fe8ff989ac906969946d22a186bcf2 Mon Sep 17 00:00:00 2001 From: Aimee Linden Date: Mon, 24 May 2010 03:00:29 +0100 Subject: EXT-7138 WIP Renamed VoiceEffectEnabled debug setting to VoiceMorphingEnabled. Hide Me->My Voice menu item when VoiceMorphing is disabled. Removed temporary VoiceFontsAvailable debug setting. --- indra/newview/app_settings/settings.xml | 25 ++++++---------------- indra/newview/llvoiceclient.cpp | 2 +- indra/newview/llvoicevivox.cpp | 3 +-- .../default/xui/en/floater_voice_controls.xml | 2 +- indra/newview/skins/default/xui/en/menu_viewer.xml | 3 ++- 5 files changed, 12 insertions(+), 23 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index cb9177587f..ac289a4fc2 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -10584,21 +10584,21 @@ Value 0 - VoiceFontsAvailable + VoiceEffectExpiryWarningTime Comment - Temporary debug setting to test UI with no voice effects available. + How much notice to give of voice effect subscriptions expiry, in seconds. Persist - 0 + 1 Type - Boolean + F32 Value - 1 + 259200.0 - VoiceEffectEnabled + VoiceMorphingEnabled Comment - Whether or not to use Voice Effects and show the UI. + Whether or not to enable Voice Effects and show the UI. Persist 0 Type @@ -10606,17 +10606,6 @@ Value 1 - VoiceEffectExpiryWarningTime - - Comment - How much notice to give of voice effect subscriptions expiry, in seconds. - Persist - 1 - Type - F32 - Value - 259200.0 - AutoDisengageMic Comment diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index d44b47707e..3a51f51c52 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -115,7 +115,7 @@ std::string LLVoiceClientStatusObserver::status2string(LLVoiceClientStatusObserv LLVoiceClient::LLVoiceClient() : mVoiceModule(NULL), - mVoiceEffectEnabled(LLCachedControl(gSavedSettings, "VoiceEffectEnabled")), + mVoiceEffectEnabled(LLCachedControl(gSavedSettings, "VoiceMorphingEnabled")), mVoiceEffectDefault(LLCachedControl(gSavedPerAccountSettings, "VoiceEffectDefault")) { } diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index d786b4d928..240d7ff164 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -1322,8 +1322,7 @@ void LLVivoxVoiceClient::stateMachine() notifyStatusObservers(LLVoiceClientStatusObserver::STATUS_LOGGED_IN); - // *FIX: Remove VoiceFontsAvailable temporary setting (only used to test UI behaviour with no fonts) - if (LLVoiceClient::instance().getVoiceEffectEnabled() && gSavedSettings.getBOOL("VoiceFontsAvailable")) + if (LLVoiceClient::instance().getVoiceEffectEnabled()) { // request the set of available voice fonts setState(stateVoiceFontsWait); diff --git a/indra/newview/skins/default/xui/en/floater_voice_controls.xml b/indra/newview/skins/default/xui/en/floater_voice_controls.xml index 216766c3a6..0569b4d515 100644 --- a/indra/newview/skins/default/xui/en/floater_voice_controls.xml +++ b/indra/newview/skins/default/xui/en/floater_voice_controls.xml @@ -99,7 +99,7 @@ + name="ShowVoice" + visibility_control="VoiceMorphingEnabled"> -- cgit v1.2.3