diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-04-01 13:47:18 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-04-01 13:47:18 +0300 |
commit | e51ec77431380891b98c40e89edf8f57d90710c4 (patch) | |
tree | 1a59c87374040095313b117c5172aed61a7f6816 /indra | |
parent | b0de02aa02b6926805a71f1c1044b65bf894bcc5 (diff) |
SL-15053 Use previous icon for Nearby chat
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llconversationview.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 12 | ||||
-rw-r--r-- | indra/newview/skins/default/textures/icons/nearby_chat_icon.png | bin | 1035 -> 399 bytes | |||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_im_session.xml | 57 | ||||
-rw-r--r-- | indra/newview/skins/default/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<LLLayoutPanel>("session_icon_panel")->setVisible(false); - + LLIconCtrl* icon = mItemPanel->getChild<LLIconCtrl>("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<LLLayoutPanel>("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<LLIconCtrl>(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 Binary files differindex 2cb577776d..5ac4258b9d 100644 --- a/indra/newview/skins/default/textures/icons/nearby_chat_icon.png +++ b/indra/newview/skins/default/textures/icons/nearby_chat_icon.png 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 @@ -266,32 +266,37 @@ left="0" right="-1"> <layout_panel - auto_resize="false" - name="session_icon_layout_panel" - width="24"> - <avatar_icon - follows="left|bottom" - name="avatar_icon" - height="20" - default_icon_name="Generic_Person" - layout="topleft" - left="3" - bottom="-9" - visible="false" - width="20" /> - <group_icon - follows="left|bottom" - name="group_chat_icon" - height="20" - default_icon_name="Generic_Group" - layout="topleft" - left="3" - bottom="-9" - visible="false" - width="20" /> - </layout_panel> - <layout_panel name="input_editor_layout_panel"> + <avatar_icon + follows="left|bottom" + name="avatar_icon" + height="20" + default_icon_name="Generic_Person" + layout="topleft" + left="3" + bottom="-9" + visible="false" + width="20" /> + <group_icon + follows="left|bottom" + name="group_chat_icon" + height="20" + default_icon_name="Generic_Group" + layout="topleft" + left="3" + bottom="-9" + visible="false" + width="20" /> + <icon + follows="left|bottom" + height="20" + image_name="Nearby_chat_icon" + layout="topleft" + left="3" + bottom="-9" + name="nearby_chat_icon" + visible="false" + width="20"/> <chat_editor layout="topleft" expand_lines_count="5" @@ -305,7 +310,7 @@ spellcheck="true" tab_group="3" bottom="-8" - left="5" + left_pad="5" right="-5" wrap="true" /> </layout_panel> 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"> - + <avatar_icon + follows="top|left" + height="20" + default_icon_name="Generic_Person" + layout="topleft" + left="9" + top="2" + visible="false" + width="20" /> + <group_icon + follows="top|left" + height="20" + default_icon_name="Generic_Group" + layout="topleft" + left="9" + top="2" + visible="false" + width="20" /> + <icon + follows="top|left" + height="20" + image_name="Nearby_chat_icon" + layout="topleft" + left="10" + name="nearby_chat_icon" + top="3" + visible="false" + width="20"/> <layout_stack animate="false" follows="all" height="24" layout="topleft" - left="9" + left="30" mouse_opaque="false" name="conversation_item_stack" orientation="horizontal" top="0" - width="109"> - <layout_panel - auto_resize="false" - name="session_icon_panel" - width="24"> - <avatar_icon - follows="top|left" - height="20" - default_icon_name="Generic_Person" - layout="topleft" - left="0" - top="2" - visible="false" - width="20" /> - <group_icon - follows="top|left" - height="20" - default_icon_name="Generic_Group" - layout="topleft" - left="0" - top="2" - visible="false" - width="20" /> - </layout_panel> + width="90"> <layout_panel auto_resize="false" user_resize="false" |