aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r--linden/indra/newview/llvoavatar.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 6e16ea3..422b22f 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3801,15 +3801,20 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3801 } 3801 }
3802 else 3802 else
3803 { 3803 {
3804 static BOOL* sSmallAvatarNames = rebind_llcontrol<BOOL>("SmallAvatarNames", &gSavedSettings, true); 3804 S32 style = LLFontGL::NORMAL;
3805 if (*sSmallAvatarNames) 3805
3806 if (!mIsSelf && gSavedSettings.getBOOL("HighlightFriends"))
3806 { 3807 {
3807 mNameText->setFont(LLFontGL::getFontSansSerif()); 3808 if (is_agent_friend(this->getID())) // Ele: bold for friends
3809 style |= LLFontGL::BOLD;
3808 } 3810 }
3811
3812 static BOOL* sSmallAvatarNames = rebind_llcontrol<BOOL>("SmallAvatarNames", &gSavedSettings, true);
3813 if (*sSmallAvatarNames)
3814 mNameText->setFont(LLFontGL::getFont(LLFontDescriptor("SansSerif","Medium",style)));
3809 else 3815 else
3810 { 3816 mNameText->setFont(LLFontGL::getFont(LLFontDescriptor("SansSerif","Large",style)));
3811 mNameText->setFont(LLFontGL::getFontSansSerifBig()); 3817
3812 }
3813 mNameText->setTextAlignment(LLHUDText::ALIGN_TEXT_CENTER); 3818 mNameText->setTextAlignment(LLHUDText::ALIGN_TEXT_CENTER);
3814 mNameText->setFadeDistance(CHAT_NORMAL_RADIUS, 5.f); 3819 mNameText->setFadeDistance(CHAT_NORMAL_RADIUS, 5.f);
3815 mNameText->setVisibleOffScreen(FALSE); 3820 mNameText->setVisibleOffScreen(FALSE);