From daed86bbb0fa1ee394a83d597cd5846809d14ba3 Mon Sep 17 00:00:00 2001 From: Igor Borovkov Date: Sat, 26 Dec 2009 16:58:05 +0200 Subject: implemented EXT-3682 Dedicated icon is required for AvaLine callers in the VCP --HG-- branch : product-engine --- indra/newview/llavatarlistitem.h | 3 ++- indra/newview/llcallfloater.cpp | 3 +++ indra/newview/llimview.cpp | 9 ++++++++- .../default/textures/icons/avaline_default_icon.jpg | Bin 0 -> 3951 bytes indra/newview/skins/default/textures/textures.xml | 2 ++ 5 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 indra/newview/skins/default/textures/icons/avaline_default_icon.jpg (limited to 'indra') diff --git a/indra/newview/llavatarlistitem.h b/indra/newview/llavatarlistitem.h index 8e359f16b3..79303b55cc 100644 --- a/indra/newview/llavatarlistitem.h +++ b/indra/newview/llavatarlistitem.h @@ -114,6 +114,8 @@ protected: */ LLOutputMonitorCtrl* mSpeakingIndicator; + LLAvatarIconCtrl* mAvatarIcon; + private: typedef enum e_online_status { @@ -133,7 +135,6 @@ private: typedef std::map icon_color_map_t; static icon_color_map_t& getItemIconColorMap(); - LLAvatarIconCtrl* mAvatarIcon; LLTextBox* mAvatarName; LLTextBox* mLastInteractionTime; LLStyle::Params mAvatarNameStyle; diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp index 581890c4fd..1b4c274bfb 100644 --- a/indra/newview/llcallfloater.cpp +++ b/indra/newview/llcallfloater.cpp @@ -40,6 +40,7 @@ #include "llagent.h" #include "llagentdata.h" // for gAgentID +#include "llavatariconctrl.h" #include "llavatarlist.h" #include "llbottomtray.h" #include "llimfloater.h" @@ -67,6 +68,8 @@ public: showLastInteractionTime(false); setShowProfileBtn(false); setShowInfoBtn(false); + mAvatarIcon->setValue("Avaline_Icon"); + mAvatarIcon->setToolTip(std::string("")); } return rv; } diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 388e0c8d8d..37ab144934 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -1712,7 +1712,14 @@ BOOL LLIncomingCallDialog::postBuild() LLUICtrl* caller_name_widget = getChild("caller name"); caller_name_widget->setValue(caller_name + " " + call_type); LLAvatarIconCtrl* icon = getChild("avatar_icon"); - icon->setValue(caller_id); + if (is_avatar) + { + icon->setValue(caller_id); + } + else + { + icon->setValue("Avaline_Icon"); + } childSetAction("Accept", onAccept, this); childSetAction("Reject", onReject, this); diff --git a/indra/newview/skins/default/textures/icons/avaline_default_icon.jpg b/indra/newview/skins/default/textures/icons/avaline_default_icon.jpg new file mode 100644 index 0000000000..3bb7f7183c Binary files /dev/null and b/indra/newview/skins/default/textures/icons/avaline_default_icon.jpg differ diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index 8a9126208a..95db84cb32 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -70,6 +70,8 @@ with the same filename but different name + + -- cgit v1.2.3