From 3eeb4e6599a87595d13b500074a22d88a1509983 Mon Sep 17 00:00:00 2001 From: Ychebotarev ProductEngine Date: Wed, 10 Feb 2010 14:35:29 +0200 Subject: partitial fix for normal task EXT-2957 [BSI] Implement object icon for chat from objects, instead of using generic image for missing profile picture --HG-- branch : product-engine --- indra/newview/llchathistory.cpp | 7 ++++++- indra/newview/llchatitemscontainerctrl.cpp | 5 ++++- .../newview/skins/default/textures/icons/object_icon.png | Bin 0 -> 973 bytes indra/newview/skins/default/textures/textures.xml | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 indra/newview/skins/default/textures/icons/object_icon.png (limited to 'indra') diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index c125f84c58..13a5df353d 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -289,7 +289,12 @@ public: if(!chat.mFromID.isNull()) { - icon->setValue(chat.mFromID); + if(mSourceType != CHAT_SOURCE_AGENT) + icon->setValue(LLSD("OBJECT_Icon")); + else + icon->setValue(chat.mFromID); + + } else if (userName->getValue().asString()==LLTrans::getString("SECOND_LIFE")) { diff --git a/indra/newview/llchatitemscontainerctrl.cpp b/indra/newview/llchatitemscontainerctrl.cpp index f772aea4bd..e164aa8fc4 100644 --- a/indra/newview/llchatitemscontainerctrl.cpp +++ b/indra/newview/llchatitemscontainerctrl.cpp @@ -321,7 +321,10 @@ void LLNearbyChatToastPanel::draw() if(icon) { icon->setDrawTooltip(mSourceType == CHAT_SOURCE_AGENT); - icon->setValue(mFromID); + if(mSourceType == CHAT_SOURCE_AGENT) + icon->setValue(mFromID); + else + icon->setValue(LLSD("OBJECT_Icon")); } mIsDirty = false; } diff --git a/indra/newview/skins/default/textures/icons/object_icon.png b/indra/newview/skins/default/textures/icons/object_icon.png new file mode 100644 index 0000000000..c9fbde987a Binary files /dev/null and b/indra/newview/skins/default/textures/icons/object_icon.png differ diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index 309c2a5f30..18d1779702 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -515,6 +515,7 @@ with the same filename but different name + -- cgit v1.2.3