From 3eeb4e6599a87595d13b500074a22d88a1509983 Mon Sep 17 00:00:00 2001 From: Ychebotarev ProductEngine <ychebotarev@productengine.com> Date: Wed, 10 Feb 2010 14:35:29 +0200 Subject: [PATCH] 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 ++++- .../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 diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index c125f84c58e..13a5df353d0 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -289,7 +289,12 @@ class LLChatHistoryHeader: public LLPanel 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 f772aea4bd8..e164aa8fc45 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 0000000000000000000000000000000000000000..c9fbde987a6615c783207ad967cb0c6c49670d04 GIT binary patch literal 973 zcmeAS@N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&<t0*FJ0z7m9B)yKCcC)3rbG z=C}7@=cJ}Cl89`7{Zygj-NrYMUbHJL^VTlk;>-Kn{`>DA(=;UhinTen)Uik~n3gX! UsdyE27Z}|Pp00i_>zopr04K;(ZU6uP literal 0 HcmV?d00001 diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index 309c2a5f30d..18d1779702f 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 <texture name="SliderThumb_Press" file_name="widgets/SliderThumb_Press.png" /> <texture name="SL_Logo" file_name="icons/SL_Logo.png" preload="true" /> + <texture name="OBJECT_Icon" file_name="icons/object_icon.png" preload="true" /> <texture name="Snapshot_Off" file_name="bottomtray/Snapshot_Off.png" preload="true" scale.left="4" scale.top="19" scale.right="22" scale.bottom="4" /> <texture name="Snapshot_Over" file_name="bottomtray/Snapshot_Over.png" preload="false" /> -- GitLab