diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 11 | ||||
| -rw-r--r-- | indra/newview/llchatbar.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llfloaterimnearbychat.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llfloaterimnearbychatlistener.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/panel_preferences_chat.xml | 20 | 
5 files changed, 31 insertions, 8 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index e216c7865d..0aa01f6fd9 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -6867,6 +6867,17 @@        <key>Value</key>        <real>90.0</real>      </map> +    <key>PlayChatAnim</key> +    <map> +      <key>Comment</key> +      <string>Your avatar plays the chat animation whenever you say, shout or whisper something in nearby chat</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>1</integer> +    </map>      <key>PlayTypingAnim</key>      <map>        <key>Comment</key> 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 cfee5001a6..66aac9c570 100644 --- a/indra/newview/llfloaterimnearbychat.cpp +++ b/indra/newview/llfloaterimnearbychat.cpp @@ -563,7 +563,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 @@ -30,12 +30,23 @@      </check_box>      <check_box +        control_name="PlayChatAnim" +        height="16" +        initial_value="true" +        label="Play chat animations when chatting in nearby chat" +        layout="topleft" +        top_pad="2" +        name="play_chat_animation" +        width="330"> +    </check_box> + +    <check_box          enabled="false"          height="16"          label="Email me IMs when I'm offline"          layout="topleft"          name="send_im_to_email" -        top_pad="6" +        top_pad="2"          width="330">      </check_box> @@ -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">           </check_box> @@ -98,6 +109,7 @@        height="165"        layout="topleft"        left="13" +      top_pad="12"        width="517">      <text @@ -284,7 +296,7 @@          height="13"          name="notifications_alert"          width="500" -        top_pad="9" +        top_pad="7"          visible="true"          text_color="DrYellow">        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">      <text  | 
