From da8dc22e3763a9767aa943add592f514c5f2ebea Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 3 Oct 2009 06:10:48 -0700 Subject: Added new color setting for Object IMs --- linden/indra/llcommon/llchat.h | 3 +- linden/indra/newview/app_settings/settings.xml | 16 ++++++++++ linden/indra/newview/llfloaterchat.cpp | 3 ++ linden/indra/newview/llviewermessage.cpp | 2 +- .../default/xui/en-us/panel_preferences_chat.xml | 35 ++++++++++++---------- 5 files changed, 42 insertions(+), 17 deletions(-) (limited to 'linden') diff --git a/linden/indra/llcommon/llchat.h b/linden/indra/llcommon/llchat.h index 6c75a25..4ec9a08 100644 --- a/linden/indra/llcommon/llchat.h +++ b/linden/indra/llcommon/llchat.h @@ -42,7 +42,8 @@ typedef enum e_chat_source_type { CHAT_SOURCE_SYSTEM = 0, CHAT_SOURCE_AGENT = 1, - CHAT_SOURCE_OBJECT = 2 + CHAT_SOURCE_OBJECT = 2, + CHAT_SOURCE_OBJECT_IM = 3 } EChatSourceType; typedef enum e_chat_type diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 7cc10af..84baa99 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml @@ -5449,6 +5449,22 @@ 1 + ObjectIMColor + + Comment + Color of IMs from objects + Persist + 1 + Type + Color4 + Value + + 0.699999988079 + 0.899999976158 + 0.699999988079 + 1 + + OpenDebugStatAdvanced Comment diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index a4082fd..cc86fce 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp @@ -548,6 +548,9 @@ LLColor4 get_text_color(const LLChat& chat) text_color = gSavedSettings.getColor4("ObjectChatColor"); } break; + case CHAT_SOURCE_OBJECT_IM: + text_color = gSavedSettings.getColor4("ObjectIMColor"); + break; default: text_color.setToWhite(); } diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index e01aa4f..9b7ec48 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp @@ -1966,7 +1966,7 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) // Note: lie to LLFloaterChat::addChat(), pretending that this is NOT an IM, because // IMs from objcts don't open IM sessions. - chat.mSourceType = CHAT_SOURCE_OBJECT; + chat.mSourceType = CHAT_SOURCE_OBJECT_IM; LLFloaterChat::addChat(chat, FALSE, FALSE); } break; diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml index b0384cf..6233cbe 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml @@ -33,44 +33,49 @@ + mouse_opaque="true" name="user" width="54" /> + enabled="true" follows="left|top" height="56" label="Others" left_delta="68" + mouse_opaque="true" name="agent" width="54" /> + enabled="true" follows="left|top" height="56" label="IMs" left_delta="68" + mouse_opaque="true" name="im" width="54" /> + height="56" label="System" left_delta="68" mouse_opaque="true" + name="system" width="54" /> + height="56" label="Errors" left_delta="68" mouse_opaque="true" + name="script_error" width="54" /> + name="objects" width="54" /> + + height="56" label="Owner" left_delta="68" mouse_opaque="true" name="owner" + width="54" /> + height="56" label="Bubble" left_delta="68" mouse_opaque="true" + name="background" width="54" /> + label="URLs" left_delta="68" mouse_opaque="true" name="links" width="54" />