fixed minor bug EXT-2147 Group and Avatar Place Holder Icons defined in the specs should be used in place of currect placeholders
--HG-- branch : product-enginemaster
parent
2857dd026c
commit
560ac281db
|
|
@ -143,7 +143,8 @@ void LLAvatarIconIDCache::remove (const LLUUID& avatar_id)
|
|||
|
||||
LLAvatarIconCtrl::Params::Params()
|
||||
: avatar_id("avatar_id"),
|
||||
draw_tooltip("draw_tooltip", true)
|
||||
draw_tooltip("draw_tooltip", true),
|
||||
default_icon_name("default_icon_name")
|
||||
{
|
||||
name = "avatar_icon";
|
||||
}
|
||||
|
|
@ -151,7 +152,8 @@ LLAvatarIconCtrl::Params::Params()
|
|||
|
||||
LLAvatarIconCtrl::LLAvatarIconCtrl(const LLAvatarIconCtrl::Params& p)
|
||||
: LLIconCtrl(p),
|
||||
mDrawTooltip(p.draw_tooltip)
|
||||
mDrawTooltip(p.draw_tooltip),
|
||||
mDefaultIconName(p.default_icon_name)
|
||||
{
|
||||
mPriority = LLViewerFetchedTexture::BOOST_ICON;
|
||||
|
||||
|
|
@ -193,7 +195,7 @@ LLAvatarIconCtrl::LLAvatarIconCtrl(const LLAvatarIconCtrl::Params& p)
|
|||
}
|
||||
else
|
||||
{
|
||||
LLIconCtrl::setValue("default_profile_picture.j2c");
|
||||
LLIconCtrl::setValue(mDefaultIconName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -260,7 +262,7 @@ bool LLAvatarIconCtrl::updateFromCache()
|
|||
}
|
||||
else
|
||||
{
|
||||
LLIconCtrl::setValue("default_profile_picture.j2c");
|
||||
LLIconCtrl::setValue(mDefaultIconName);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ public:
|
|||
{
|
||||
Optional <LLUUID> avatar_id;
|
||||
Optional <bool> draw_tooltip;
|
||||
Optional <std::string> default_icon_name;
|
||||
Params();
|
||||
};
|
||||
|
||||
|
|
@ -106,7 +107,7 @@ protected:
|
|||
std::string mFirstName;
|
||||
std::string mLastName;
|
||||
bool mDrawTooltip;
|
||||
|
||||
std::string mDefaultIconName;
|
||||
|
||||
bool updateFromCache();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ public:
|
|||
{
|
||||
draw_tooltip(FALSE);
|
||||
mouse_opaque(FALSE);
|
||||
default_icon_name("Generic_Person");
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -128,7 +129,7 @@ public:
|
|||
Optional<std::string> default_icon;
|
||||
|
||||
Params()
|
||||
: default_icon("default_icon", "default_land_picture.j2c")
|
||||
: default_icon("default_icon", "Generic_Group")
|
||||
{
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
<avatar_icon
|
||||
follows="top|left"
|
||||
height="20"
|
||||
image_name="smile.png"
|
||||
default_icon_name="Generic_Person"
|
||||
layout="topleft"
|
||||
left="5"
|
||||
mouse_opaque="true"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
|
||||
<avatar_icon default_icon_name="Generic_Person_Large">
|
||||
</avatar_icon>
|
||||
Loading…
Reference in New Issue