SL-15053 Use previous icon for Nearby chat

meow-7.2.2
Mnikolenko Productengine 2021-04-01 13:47:18 +03:00
parent b0de02aa02
commit e51ec77431
5 changed files with 73 additions and 56 deletions

View File

@ -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())

View File

@ -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()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 399 B

View File

@ -265,33 +265,38 @@
bottom="-1"
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>

View File

@ -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"