aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-07-30 14:05:09 +0200
committerJacek Antonelli2010-08-02 00:11:24 -0500
commit000b378f59bcd8bbdb4b50e5e5b60376ba239976 (patch)
treeef7a400fcbbaa9ec956bf672b3ca0f2d8a1ef2fc /linden/indra/newview/llvoavatar.cpp
parentdon't show textures without fetcher in texture-console (backport from Viewer ... (diff)
downloadmeta-impy-000b378f59bcd8bbdb4b50e5e5b60376ba239976.zip
meta-impy-000b378f59bcd8bbdb4b50e5e5b60376ba239976.tar.gz
meta-impy-000b378f59bcd8bbdb4b50e5e5b60376ba239976.tar.bz2
meta-impy-000b378f59bcd8bbdb4b50e5e5b60376ba239976.tar.xz
small show client name of others tweaking
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvoavatar.cpp30
1 files changed, 19 insertions, 11 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 200b3a6..53962a9 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3544,21 +3544,29 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3544 } 3544 }
3545 3545
3546 LLColor4 avatar_name_color = gColors.getColor( "AvatarNameColor" ); 3546 LLColor4 avatar_name_color = gColors.getColor( "AvatarNameColor" );
3547 if (gSavedSettings.getBOOL("ShowClientNameTag")) 3547 LLColor4 client_color = avatar_name_color;
3548
3549 if(!mIsSelf) //don't know your own client ?
3548 { 3550 {
3549 if(!mIsSelf) //don't know your own client ? 3551 new_name = TRUE; //lol or see the last client used
3550 { 3552 {
3551 new_name = TRUE; //lol or see the last client used 3553 resolveClient(client_color,client, this);
3552 {
3553 resolveClient(avatar_name_color,client, this);
3554 }
3555 }
3556 else
3557 {
3558 // Set your own name to the Imprudence color -- MC
3559 avatar_name_color = LLColor4(0.79f,0.44f,0.88f);
3560 } 3554 }
3561 } 3555 }
3556 else
3557 {
3558 // Set your own name to the Imprudence color -- MC
3559 client_color = LLColor4(0.79f,0.44f,0.88f);
3560 }
3561 if (gSavedSettings.getBOOL("ShowClientColor"))
3562 {
3563 avatar_name_color = client_color;
3564 }
3565 if (!gSavedSettings.getBOOL("ShowClientNameTag"))
3566 {
3567 client.clear();
3568 }
3569
3562 avatar_name_color.setAlpha(alpha); 3570 avatar_name_color.setAlpha(alpha);
3563 mNameText->setColor(avatar_name_color); 3571 mNameText->setColor(avatar_name_color);
3564 3572