From e51ec77431380891b98c40e89edf8f57d90710c4 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Thu, 1 Apr 2021 13:47:18 +0300 Subject: [PATCH] SL-15053 Use previous icon for Nearby chat --- indra/newview/llconversationview.cpp | 4 +- indra/newview/llfloaterimsessiontab.cpp | 12 +++- .../textures/icons/nearby_chat_icon.png | Bin 1035 -> 399 bytes .../default/xui/en/floater_im_session.xml | 57 ++++++++++-------- .../xui/en/panel_conversation_list_item.xml | 56 +++++++++-------- 5 files changed, 73 insertions(+), 56 deletions(-) diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 7c9027d1b5..71346b4b43 100644 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -249,8 +249,8 @@ BOOL LLConversationViewSession::postBuild() } case LLConversationItem::CONV_SESSION_NEARBY: { - mItemPanel->getChild("session_icon_panel")->setVisible(false); - + LLIconCtrl* icon = mItemPanel->getChild("nearby_chat_icon"); + icon->setVisible(true); mSpeakingIndicator->setSpeakerId(gAgentID, LLUUID::null, true); mIsInActiveVoiceChannel = true; if(LLVoiceClient::instanceExists()) diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 492f63a700..e7f428c06a 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -48,6 +48,7 @@ const F32 REFRESH_INTERVAL = 1.0f; const std::string ICN_GROUP("group_chat_icon"); +const std::string ICN_NEARBY("nearby_chat_icon"); const std::string ICN_AVATAR("avatar_icon"); void cb_group_do_nothing() @@ -346,8 +347,6 @@ BOOL LLFloaterIMSessionTab::postBuild() assignResizeLimits(); - getChild("session_icon_layout_panel")->setVisible(mSessionID.notNull()); - return result; } @@ -727,6 +726,15 @@ void LLFloaterIMSessionTab::updateChatIcon(const LLUUID& id) icon->setValue(id); } } + else + { + if (mIsNearbyChat) + { + LLIconCtrl* icon = getChild(ICN_NEARBY); + icon->setVisible(true); + } + } + } void LLFloaterIMSessionTab::hideAllStandardButtons() diff --git a/indra/newview/skins/default/textures/icons/nearby_chat_icon.png b/indra/newview/skins/default/textures/icons/nearby_chat_icon.png index 2cb577776da8403e0b09ae1c9fe9a3af43dee90f..5ac4258b9da117d316a5abf15c405d136a19fd48 100644 GIT binary patch delta 336 zcmV-W0k8gx2#*7hNPht_NklsgTWr5fSi22dP1%cQLh^28E z$cV+uAjQ+5mOTgJG$hLxKn?u^#3?}hmKYZbBZ-69EKoKll8afOau|RGi`XR~UIWB> zQ2Gy4{3{Um0dW8jp9JDt#Cn-(k-`SV3TX0@K->?+n}K*T7JqpKs6GrA3PLr2!sr4J z*FxocfmjVm{R1G*g|eH0*Z_z>LdD)AyHE`&zzvYXRu0WYa!9^0fU^0KErl6)5r}U< z*~k%b5zWB!Q2G~C9RpO~MPefbWP2twZGzI|Ol)b7Zn2DB}#m2I&J z8bT8_2t*=95J@jIQG7Og`|0-UUVUX5@m>X5wr^-be$|QOvKVK%89896vwtwHxF~^Ja6`U2K@)# z^}@^de$V%ue!t)Iexl>!V>-zt&-PbeuZEv3D^JxWSSI)77JTdSRzn0P!kHrD0o z=}BvAYqYhsMLs@0B$Z0(;NXD#{r%m6R;!hAb8{<-ii#ezwY6Q*>2%ZVCv0zTlef3G z9LWX|;L+FD_rYefQF?khMMXtXaBwh%hljHdG2i@5O--fU-CfdZwVyUOHy!o$^@Bk{ zK}s$z$Ye6AtADHOLS=b#bMwW;#YMy6;URYvhy*^Igx{S`Cy7KNZq5q@0%P9e+=O#>cD7%oQl(44VH8x>#Ky+D z)y&Gu%71k@92O+~;pOE;p`oGqK=A?m31+idy}G*k9{lPd+)w!CLzE7q(a3xnP&|a^ zkePN#BoY#f#mticl3h3-2LuFgcL6xF*?s<}HntNsF~{%%Lbiz{fbbigsOIPA-9`kA zCnqQ0280B?UOyWd8TnQ&mtRJ(=fJ>#md8w~RDYgEauwd6Vg87bz=x4;2rzs~NJz*( zIy&;^IT{}yf4#A>VS#E-kX#1%&ZVWLS1T(kFOUpwN4_N`C69J?cK!?v4L!#c@W6}W z^`wG70cXxMRga0bu zo`1x|#7npYvBSf|Ps9p^!Wnh+>3z zPx1b3VPS!wvaF$@;SCDTV5IH~fJZGYEw`Ye6I0(G78Z7j6Cm&xIJGnB9v&V9sKoGq zz-}^`%utt;$(x#*-a>V0YisLGzWZW8 diff --git a/indra/newview/skins/default/xui/en/floater_im_session.xml b/indra/newview/skins/default/xui/en/floater_im_session.xml index f61e5f1acc..15f02ab9c3 100644 --- a/indra/newview/skins/default/xui/en/floater_im_session.xml +++ b/indra/newview/skins/default/xui/en/floater_im_session.xml @@ -265,33 +265,38 @@ bottom="-1" left="0" right="-1"> - - - - + + + diff --git a/indra/newview/skins/default/xui/en/panel_conversation_list_item.xml b/indra/newview/skins/default/xui/en/panel_conversation_list_item.xml index 3be2beb0aa..4372cf69bf 100644 --- a/indra/newview/skins/default/xui/en/panel_conversation_list_item.xml +++ b/indra/newview/skins/default/xui/en/panel_conversation_list_item.xml @@ -6,41 +6,45 @@ name="conversation_list_item" mouse_opaque="false" width="120"> - + + + - - - - + width="90">