From 8450386330660dc29bee21f695840dddbaa8310a Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 6 Feb 2012 03:52:25 +0100 Subject: [PATCH] Allow to disable chat animation --- .../app_settings/settings_ascent_coa.xml | 17 ++++++++++++++++- indra/newview/ascentprefsvan.cpp | 2 ++ indra/newview/ascentprefsvan.h | 1 + indra/newview/llchatbar.cpp | 4 +++- .../en-us/panel_preferences_ascent_vanity.xml | 1 + 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings_ascent_coa.xml b/indra/newview/app_settings/settings_ascent_coa.xml index 660c18d14..ca4baa6d4 100644 --- a/indra/newview/app_settings/settings_ascent_coa.xml +++ b/indra/newview/app_settings/settings_ascent_coa.xml @@ -2,7 +2,22 @@ - MoyMiniMapCustomColor + + SGDisableChatAnimation + + Comment + Disable whisper, chat and shout animations on your avatar + Persist + 1 + Type + Boolean + Value + 0 + IsCOA + 1 + + + MoyMiniMapCustomColor Comment Custom minimap color you wish to have. diff --git a/indra/newview/ascentprefsvan.cpp b/indra/newview/ascentprefsvan.cpp index 411e159de..4b73e2e1f 100644 --- a/indra/newview/ascentprefsvan.cpp +++ b/indra/newview/ascentprefsvan.cpp @@ -218,6 +218,7 @@ void LLPrefsAscentVan::refreshValues() mShowTPScreen = !gSavedSettings.getBOOL("AscentDisableTeleportScreens"); mPlayTPSound = gSavedSettings.getBOOL("OptionPlayTpSound"); mShowLogScreens = !gSavedSettings.getBOOL("AscentDisableLogoutScreens"); + mDisableChatAnimation = gSavedSettings.getBOOL("SGDisableChatAnimation"); //Tags\Colors ---------------------------------------------------------------------------- mAscentUseTag = gSavedSettings.getBOOL("AscentUseTag"); @@ -291,6 +292,7 @@ void LLPrefsAscentVan::cancel() gSavedSettings.setBOOL("AscentDisableTeleportScreens", !mShowTPScreen); gSavedSettings.setBOOL("OptionPlayTpSound", mPlayTPSound); gSavedSettings.setBOOL("AscentDisableLogoutScreens", !mShowLogScreens); + gSavedSettings.setBOOL("SGDisableChatAnimation", mDisableChatAnimation); //Tags\Colors ---------------------------------------------------------------------------- gSavedSettings.setBOOL("AscentUseTag", mAscentUseTag); diff --git a/indra/newview/ascentprefsvan.h b/indra/newview/ascentprefsvan.h index 5545c5b2f..115b1c206 100644 --- a/indra/newview/ascentprefsvan.h +++ b/indra/newview/ascentprefsvan.h @@ -57,6 +57,7 @@ protected: BOOL mShowTPScreen; BOOL mPlayTPSound; BOOL mShowLogScreens; + bool mDisableChatAnimation; //Tags\Colors BOOL mAscentUseTag; std::string mReportClientUUID; diff --git a/indra/newview/llchatbar.cpp b/indra/newview/llchatbar.cpp index 2ddb614d3..ef1413954 100644 --- a/indra/newview/llchatbar.cpp +++ b/indra/newview/llchatbar.cpp @@ -685,8 +685,10 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL } // [/RLVa:KB] + LLCachedControl disable_chat_animation("SGDisableChatAnimation"); + // Don't animate for chats people can't hear (chat to scripts) - if (animate && (channel == 0)) + if (animate && (channel == 0) && !disable_chat_animation) { if (type == CHAT_TYPE_WHISPER) { diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml index fe846b3e6..93b8c245d 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml @@ -6,6 +6,7 @@ +