Skip to content
Snippets Groups Projects
Commit 1e74372f authored by Vadim ProductEngine's avatar Vadim ProductEngine
Browse files

CHUI-90 WIP Added "View full profile" link to avatar inspectors.

parent bc4702a7
Branches
Tags
No related merge requests found
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "llavatarpropertiesprocessor.h" #include "llavatarpropertiesprocessor.h"
#include "lldateutil.h" #include "lldateutil.h"
#include "llinspect.h" #include "llinspect.h"
#include "llslurl.h"
#include "llstartup.h" #include "llstartup.h"
#include "lltransientfloatermgr.h" #include "lltransientfloatermgr.h"
...@@ -181,6 +182,9 @@ void LLInspectAvatar::onOpen(const LLSD& data) ...@@ -181,6 +182,9 @@ void LLInspectAvatar::onOpen(const LLSD& data)
LLUI::positionViewNearMouse(this); LLUI::positionViewNearMouse(this);
} }
// Generate link to avatar profile.
getChild<LLUICtrl>("avatar_profile_link")->setTextArg("[LINK]", LLSLURL("agent", mAvatarID, "about").getSLURLString());
// can't call from constructor as widgets are not built yet // can't call from constructor as widgets are not built yet
requestUpdate(); requestUpdate();
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
bg_opaque_image="Inspector_Background" bg_opaque_image="Inspector_Background"
can_close="false" can_close="false"
can_minimize="false" can_minimize="false"
height="164" height="130"
layout="topleft" layout="topleft"
name="inspect_avatar" name="inspect_avatar"
single_instance="true" single_instance="true"
...@@ -94,6 +94,17 @@ ...@@ -94,6 +94,17 @@
use_ellipses="true" use_ellipses="true"
width="220">This is my second life description and I really think it is great. But for some reason my description is super extra long because I like to talk a whole lot width="220">This is my second life description and I really think it is great. But for some reason my description is super extra long because I like to talk a whole lot
</text> </text>
<text
follows="top|left"
height="16"
left="8"
name="avatar_profile_link"
font="SansSerifSmall"
text_color="White"
top_pad="5"
translate="false"
value="[[LINK] View full profile]"
width="175" />
<avatar_icon <avatar_icon
follows="top|left" follows="top|left"
height="38" height="38"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment