diff options
author | McCabe Maxsted | 2009-10-03 06:10:48 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-03 06:10:48 -0700 |
commit | da8dc22e3763a9767aa943add592f514c5f2ebea (patch) | |
tree | 4cb127b512e47e781bf2da65d469d75d5dc1318b | |
parent | Fixed 1.2 beta features missing from silver skin (diff) | |
download | meta-impy-da8dc22e3763a9767aa943add592f514c5f2ebea.zip meta-impy-da8dc22e3763a9767aa943add592f514c5f2ebea.tar.gz meta-impy-da8dc22e3763a9767aa943add592f514c5f2ebea.tar.bz2 meta-impy-da8dc22e3763a9767aa943add592f514c5f2ebea.tar.xz |
Added new color setting for Object IMs
-rw-r--r-- | ChangeLog.txt | 9 | ||||
-rw-r--r-- | linden/indra/llcommon/llchat.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 16 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml | 35 |
6 files changed, 51 insertions, 17 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 3a0e0d1..9d9f487 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,14 @@ | |||
1 | 2009-10-02 McCabe Maxsted <hakushakukun@gmail.com> | 1 | 2009-10-02 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 2 | ||
3 | * Added new color setting for Object IMs. | ||
4 | |||
5 | modified: linden/indra/llcommon/llchat.h | ||
6 | modified: linden/indra/newview/app_settings/settings.xml | ||
7 | modified: linden/indra/newview/llfloaterchat.cpp | ||
8 | modified: linden/indra/newview/llviewermessage.cpp | ||
9 | modified: linden/indra/newview/skins/default/xui/en-us/panel_preferences_chat.xml | ||
10 | |||
11 | |||
3 | * Fixed 1.2 beta features missing from silver skin. | 12 | * Fixed 1.2 beta features missing from silver skin. |
4 | 13 | ||
5 | deleted: linden/indra/newview/skins/silver/xui/en-us/floater_chatterbox.xml | 14 | deleted: linden/indra/newview/skins/silver/xui/en-us/floater_chatterbox.xml |
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 | |||
42 | { | 42 | { |
43 | CHAT_SOURCE_SYSTEM = 0, | 43 | CHAT_SOURCE_SYSTEM = 0, |
44 | CHAT_SOURCE_AGENT = 1, | 44 | CHAT_SOURCE_AGENT = 1, |
45 | CHAT_SOURCE_OBJECT = 2 | 45 | CHAT_SOURCE_OBJECT = 2, |
46 | CHAT_SOURCE_OBJECT_IM = 3 | ||
46 | } EChatSourceType; | 47 | } EChatSourceType; |
47 | 48 | ||
48 | typedef enum e_chat_type | 49 | 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 @@ | |||
5449 | <real>1</real> | 5449 | <real>1</real> |
5450 | </array> | 5450 | </array> |
5451 | </map> | 5451 | </map> |
5452 | <key>ObjectIMColor</key> | ||
5453 | <map> | ||
5454 | <key>Comment</key> | ||
5455 | <string>Color of IMs from objects</string> | ||
5456 | <key>Persist</key> | ||
5457 | <integer>1</integer> | ||
5458 | <key>Type</key> | ||
5459 | <string>Color4</string> | ||
5460 | <key>Value</key> | ||
5461 | <array> | ||
5462 | <real>0.699999988079</real> | ||
5463 | <real>0.899999976158</real> | ||
5464 | <real>0.699999988079</real> | ||
5465 | <real>1</real> | ||
5466 | </array> | ||
5467 | </map> | ||
5452 | <key>OpenDebugStatAdvanced</key> | 5468 | <key>OpenDebugStatAdvanced</key> |
5453 | <map> | 5469 | <map> |
5454 | <key>Comment</key> | 5470 | <key>Comment</key> |
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) | |||
548 | text_color = gSavedSettings.getColor4("ObjectChatColor"); | 548 | text_color = gSavedSettings.getColor4("ObjectChatColor"); |
549 | } | 549 | } |
550 | break; | 550 | break; |
551 | case CHAT_SOURCE_OBJECT_IM: | ||
552 | text_color = gSavedSettings.getColor4("ObjectIMColor"); | ||
553 | break; | ||
551 | default: | 554 | default: |
552 | text_color.setToWhite(); | 555 | text_color.setToWhite(); |
553 | } | 556 | } |
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) | |||
1966 | 1966 | ||
1967 | // Note: lie to LLFloaterChat::addChat(), pretending that this is NOT an IM, because | 1967 | // Note: lie to LLFloaterChat::addChat(), pretending that this is NOT an IM, because |
1968 | // IMs from objcts don't open IM sessions. | 1968 | // IMs from objcts don't open IM sessions. |
1969 | chat.mSourceType = CHAT_SOURCE_OBJECT; | 1969 | chat.mSourceType = CHAT_SOURCE_OBJECT_IM; |
1970 | LLFloaterChat::addChat(chat, FALSE, FALSE); | 1970 | LLFloaterChat::addChat(chat, FALSE, FALSE); |
1971 | } | 1971 | } |
1972 | break; | 1972 | 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 @@ | |||
33 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | 33 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" |
34 | can_apply_immediately="true" color="1 1 1 1" control_name="UserChatColor" | 34 | can_apply_immediately="true" color="1 1 1 1" control_name="UserChatColor" |
35 | enabled="true" follows="left|top" height="56" label="You" left="148" | 35 | enabled="true" follows="left|top" height="56" label="You" left="148" |
36 | mouse_opaque="true" name="user" width="44" /> | 36 | mouse_opaque="true" name="user" width="54" /> |
37 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | 37 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" |
38 | can_apply_immediately="true" color="1 1 1 1" control_name="AgentChatColor" | 38 | can_apply_immediately="true" color="1 1 1 1" control_name="AgentChatColor" |
39 | enabled="true" follows="left|top" height="56" label="Others" left_delta="48" | 39 | enabled="true" follows="left|top" height="56" label="Others" left_delta="68" |
40 | mouse_opaque="true" name="agent" width="44" /> | 40 | mouse_opaque="true" name="agent" width="54" /> |
41 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | 41 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" |
42 | can_apply_immediately="true" color="0.6 0.6 1 1" | 42 | can_apply_immediately="true" color="0.6 0.6 1 1" |
43 | enabled="true" follows="left|top" height="56" label="IM" left_delta="48" | 43 | enabled="true" follows="left|top" height="56" label="IMs" left_delta="68" |
44 | mouse_opaque="true" name="im" width="44" /> | 44 | mouse_opaque="true" name="im" width="54" /> |
45 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | 45 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" |
46 | can_apply_immediately="true" color="0.8 1 1 1" | 46 | can_apply_immediately="true" color="0.8 1 1 1" |
47 | enabled="true" follows="left|top" | 47 | enabled="true" follows="left|top" |
48 | height="56" label="System" left_delta="48" mouse_opaque="true" | 48 | height="56" label="System" left_delta="68" mouse_opaque="true" |
49 | name="system" width="44" /> | 49 | name="system" width="54" /> |
50 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" | 50 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-108" |
51 | can_apply_immediately="true" color="0.82 0.82 0.99 1" | 51 | can_apply_immediately="true" color="0.82 0.82 0.99 1" |
52 | control_name="ScriptErrorColor" enabled="true" follows="left|top" | 52 | control_name="ScriptErrorColor" enabled="true" follows="left|top" |
53 | height="56" label="Errors" left_delta="48" mouse_opaque="true" | 53 | height="56" label="Errors" left_delta="68" mouse_opaque="true" |
54 | name="script_error" width="44" /> | 54 | name="script_error" width="54" /> |
55 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | 55 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" |
56 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | 56 | can_apply_immediately="true" color="0.7 0.9 0.7 1" |
57 | control_name="ObjectChatColor" enabled="true" follows="left|top" | 57 | control_name="ObjectChatColor" enabled="true" follows="left|top" |
58 | height="56" label="Objects" left="148" mouse_opaque="true" | 58 | height="56" label="Objects" left="148" mouse_opaque="true" |
59 | name="objects" width="44" /> | 59 | name="objects" width="54" /> |
60 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | 60 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" |
61 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | 61 | can_apply_immediately="true" color="0.7 0.9 0.7 1" |
62 | control_name="ObjectIMColor" enabled="true" follows="left|top" | ||
63 | height="56" label="Object IMs" left_delta="68" mouse_opaque="true" | ||
64 | name="object_ims" width="54" /> | ||
65 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | ||
66 | can_apply_immediately="true" color="0.7 0.9 0.7 1" | ||
62 | enabled="true" follows="left|top" | 67 | enabled="true" follows="left|top" |
63 | height="56" label="Owner" left_delta="48" mouse_opaque="true" name="owner" | 68 | height="56" label="Owner" left_delta="68" mouse_opaque="true" name="owner" |
64 | width="44" /> | 69 | width="54" /> |
65 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | 70 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" |
66 | can_apply_immediately="true" color="0 0 0 1" | 71 | can_apply_immediately="true" color="0 0 0 1" |
67 | enabled="true" follows="left|top" | 72 | enabled="true" follows="left|top" |
68 | height="56" label="Bubble" left_delta="48" mouse_opaque="true" | 73 | height="56" label="Bubble" left_delta="68" mouse_opaque="true" |
69 | name="background" width="44" /> | 74 | name="background" width="54" /> |
70 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" | 75 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-165" |
71 | can_apply_immediately="true" color="0.6 0.6 1 1" | 76 | can_apply_immediately="true" color="0.6 0.6 1 1" |
72 | enabled="true" follows="left|top" height="56" | 77 | enabled="true" follows="left|top" height="56" |
73 | label="URLs" left_delta="48" mouse_opaque="true" name="links" width="44" /> | 78 | label="URLs" left_delta="68" mouse_opaque="true" name="links" width="54" /> |
74 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 79 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
75 | bottom="-185" drop_shadow_visible="true" enabled="true" follows="left|top" | 80 | bottom="-185" drop_shadow_visible="true" enabled="true" follows="left|top" |
76 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" | 81 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="12" |