From 04eee0ac24de1bf1744ed7a8707a847961fe7192 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Thu, 25 Apr 2019 16:07:20 +0300 Subject: SL-11031 [Legacy Profiles] "Drop inventory" field visible for own profile --- indra/newview/llpanelprofile.cpp | 2 + indra/newview/llpanelprofile.h | 1 + .../default/xui/en/panel_profile_secondlife.xml | 150 ++++++++++++--------- 3 files changed, 93 insertions(+), 60 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index d40f874f24..6c0b1b9047 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -270,6 +270,7 @@ BOOL LLPanelProfileSecondLife::postBuild() mPayButton = getChild("pay"); mIMButton = getChild("im"); mCopyMenuButton = getChild("copy_btn"); + mGiveInvPanel = getChild("give_stack"); mStatusText->setVisible(FALSE); mCopyMenuButton->setVisible(FALSE); @@ -321,6 +322,7 @@ void LLPanelProfileSecondLife::onOpen(const LLSD& key) mBlockButton->setVisible(!own_profile); mUnblockButton->setVisible(!own_profile); mGroupList->setShowNone(!own_profile); + mGiveInvPanel->setVisible(!own_profile); if (own_profile && !getEmbedded()) { diff --git a/indra/newview/llpanelprofile.h b/indra/newview/llpanelprofile.h index ba98a360fa..7d22b64dbe 100644 --- a/indra/newview/llpanelprofile.h +++ b/indra/newview/llpanelprofile.h @@ -203,6 +203,7 @@ private: LLButton* mPayButton; LLButton* mIMButton; LLMenuButton* mCopyMenuButton; + LLPanel* mGiveInvPanel; bool mVoiceStatus; diff --git a/indra/newview/skins/default/xui/en/panel_profile_secondlife.xml b/indra/newview/skins/default/xui/en/panel_profile_secondlife.xml index a5f486d4a1..f7d3353786 100644 --- a/indra/newview/skins/default/xui/en/panel_profile_secondlife.xml +++ b/indra/newview/skins/default/xui/en/panel_profile_secondlife.xml @@ -322,76 +322,106 @@ name="group_list" top_delta="-20" left="66" - right="-6" - height="80" + right="-7" + height="82" follows="left|top|right" layout="topleft" border_visible="true" color="ScrollBgWriteableColor" for_agent="false" /> - - - - - - Drop inventory item here. - + + + + + + + + + Drop inventory item here. + + +