summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2021-03-01 17:16:07 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2021-03-01 17:16:07 +0200
commitba608514e1f2e7c05706fc3740d64b8390fbdb69 (patch)
tree63af7c8a80b830d78739343096d219a67b560041
parentbc8bf1cb54ff4322d355d438947cac7bf3320fd4 (diff)
SL-13609 Don't use any icon for Nearby chat
-rw-r--r--indra/newview/llconversationview.cpp4
-rw-r--r--indra/newview/llfloaterimsessiontab.cpp12
-rw-r--r--indra/newview/skins/default/xui/en/floater_im_session.xml57
-rw-r--r--indra/newview/skins/default/xui/en/panel_conversation_list_item.xml56
4 files changed, 56 insertions, 73 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp
index 71346b4b43..7c9027d1b5 100644
--- a/indra/newview/llconversationview.cpp
+++ b/indra/newview/llconversationview.cpp
@@ -249,8 +249,8 @@ BOOL LLConversationViewSession::postBuild()
}
case LLConversationItem::CONV_SESSION_NEARBY:
{
- LLIconCtrl* icon = mItemPanel->getChild<LLIconCtrl>("nearby_chat_icon");
- icon->setVisible(true);
+ mItemPanel->getChild<LLLayoutPanel>("session_icon_panel")->setVisible(false);
+
mSpeakingIndicator->setSpeakerId(gAgentID, LLUUID::null, true);
mIsInActiveVoiceChannel = true;
if(LLVoiceClient::instanceExists())
diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp
index e7f428c06a..492f63a700 100644
--- a/indra/newview/llfloaterimsessiontab.cpp
+++ b/indra/newview/llfloaterimsessiontab.cpp
@@ -48,7 +48,6 @@
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()
@@ -347,6 +346,8 @@ BOOL LLFloaterIMSessionTab::postBuild()
assignResizeLimits();
+ getChild<LLLayoutPanel>("session_icon_layout_panel")->setVisible(mSessionID.notNull());
+
return result;
}
@@ -726,15 +727,6 @@ 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/xui/en/floater_im_session.xml b/indra/newview/skins/default/xui/en/floater_im_session.xml
index 15f02ab9c3..f61e5f1acc 100644
--- a/indra/newview/skins/default/xui/en/floater_im_session.xml
+++ b/indra/newview/skins/default/xui/en/floater_im_session.xml
@@ -266,37 +266,32 @@
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"
@@ -310,7 +305,7 @@
spellcheck="true"
tab_group="3"
bottom="-8"
- left_pad="5"
+ left="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 4372cf69bf..3be2beb0aa 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,45 +6,41 @@
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="30"
+ left="9"
mouse_opaque="false"
name="conversation_item_stack"
orientation="horizontal"
top="0"
- width="90">
+ 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>
<layout_panel
auto_resize="false"
user_resize="false"