From 2474385a2a447a9e9d05bb170c6f7a4be8d43249 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 22 Feb 2013 11:19:51 +0100 Subject: STORM-1931: Added option to disable chat animations (say/whisper/shout) --- doc/contributions.txt | 1 + indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llchatbar.cpp | 2 +- indra/newview/llfloaterimnearbychat.cpp | 2 +- indra/newview/llfloaterimnearbychatlistener.cpp | 4 ++-- .../skins/default/xui/en/panel_preferences_chat.xml | 20 ++++++++++++++++---- 6 files changed, 32 insertions(+), 8 deletions(-) diff --git a/doc/contributions.txt b/doc/contributions.txt index e86ef11a72..7ca33e542e 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -175,6 +175,7 @@ Ansariel Hiller STORM-1685 STORM-1713 STORM-1899 + STORM-1931 Aralara Rajal Ardy Lay STORM-859 diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 79376f7467..6436f11967 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -6845,6 +6845,17 @@ Value 90.0 + PlayChatAnim + + Comment + Your avatar plays the chat animation whenever you say, shout or whisper something in nearby chat + Persist + 1 + Type + Boolean + Value + 1 + PlayTypingAnim Comment diff --git a/indra/newview/llchatbar.cpp b/indra/newview/llchatbar.cpp index 7d0331757b..b3bc0ba966 100644 --- a/indra/newview/llchatbar.cpp +++ b/indra/newview/llchatbar.cpp @@ -381,7 +381,7 @@ void LLChatBar::sendChat( EChatType type ) if (!utf8_revised_text.empty()) { // Chat with animation - sendChatFromViewer(utf8_revised_text, type, TRUE); + sendChatFromViewer(utf8_revised_text, type, gSavedSettings.getBOOL("PlayChatAnim")); } } } diff --git a/indra/newview/llfloaterimnearbychat.cpp b/indra/newview/llfloaterimnearbychat.cpp index 430326203f..c0a2c2e13f 100644 --- a/indra/newview/llfloaterimnearbychat.cpp +++ b/indra/newview/llfloaterimnearbychat.cpp @@ -511,7 +511,7 @@ void LLFloaterIMNearbyChat::sendChat( EChatType type ) if (!utf8_revised_text.empty()) { // Chat with animation - sendChatFromViewer(utf8_revised_text, type, TRUE); + sendChatFromViewer(utf8_revised_text, type, gSavedSettings.getBOOL("PlayChatAnim")); } } diff --git a/indra/newview/llfloaterimnearbychatlistener.cpp b/indra/newview/llfloaterimnearbychatlistener.cpp index 14a22bcd84..5a5f6c72c8 100644 --- a/indra/newview/llfloaterimnearbychatlistener.cpp +++ b/indra/newview/llfloaterimnearbychatlistener.cpp @@ -33,7 +33,7 @@ #include "llagent.h" #include "llchat.h" - +#include "llviewercontrol.h" LLFloaterIMNearbyChatListener::LLFloaterIMNearbyChatListener(LLFloaterIMNearbyChat & chatbar) @@ -95,6 +95,6 @@ void LLFloaterIMNearbyChatListener::sendChat(LLSD const & chat_data) const } // Send it as if it was typed in - mChatbar.sendChatFromViewer(chat_to_send, type_o_chat, (BOOL)(channel == 0)); + mChatbar.sendChatFromViewer(chat_to_send, type_o_chat, ((BOOL)(channel == 0)) && gSavedSettings.getBOOL("PlayChatAnim")); } diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index 9db3816c92..e737938493 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -29,13 +29,24 @@ width="330"> + + + @@ -45,7 +56,7 @@ label="Only friends and groups can call or IM me" layout="topleft" name="voice_call_friends_only_check" - top_pad="6" + top_pad="2" width="350"> @@ -98,6 +109,7 @@ height="165" layout="topleft" left="13" + top_pad="12" width="517"> To temporarily stop all notifications, use Communicate > Do Not Disturb. @@ -297,7 +309,7 @@ height="50" layout="topleft" left="13" - top_pad="10" + top_pad="7" width="517"> Date: Thu, 21 Mar 2013 14:21:56 -0400 Subject: storm-1931: make the new PlayChatAnim setting hidden --- .../skins/default/xui/en/panel_preferences_chat.xml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index e737938493..9db3816c92 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -29,24 +29,13 @@ width="330"> - - - @@ -56,7 +45,7 @@ label="Only friends and groups can call or IM me" layout="topleft" name="voice_call_friends_only_check" - top_pad="2" + top_pad="6" width="350"> @@ -109,7 +98,6 @@ height="165" layout="topleft" left="13" - top_pad="12" width="517"> To temporarily stop all notifications, use Communicate > Do Not Disturb. @@ -309,7 +297,7 @@ height="50" layout="topleft" left="13" - top_pad="7" + top_pad="10" width="517">