aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Seikel2011-06-19 21:18:47 +1000
committerDavid Seikel2011-06-19 21:18:47 +1000
commit3c9fd48171d65c8f25a0ed5463522cca27eacc10 (patch)
tree03b627e0a0f90db04c0a43c68946ccb931863a0e
parentMerge branch 'next' of git://github.com/jacek/imprudence into next (diff)
downloadmeta-impy-3c9fd48171d65c8f25a0ed5463522cca27eacc10.zip
meta-impy-3c9fd48171d65c8f25a0ed5463522cca27eacc10.tar.gz
meta-impy-3c9fd48171d65c8f25a0ed5463522cca27eacc10.tar.bz2
meta-impy-3c9fd48171d65c8f25a0ed5463522cca27eacc10.tar.xz
Clean up the tag colour stuff after the merge.
Also putting our own at the top of the if tree, and the meta7 one lower.
-rw-r--r--linden/indra/newview/llvoavatar.cpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 737f839..d1871b7 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3268,32 +3268,29 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client,
3268{ 3268{
3269 LLUUID idx = avatar->getTE(0)->getID(); 3269 LLUUID idx = avatar->getTE(0)->getID();
3270 3270
3271 // meta 7 gets special treatment - 3271 // meta-impy gets special treatment -
3272 // A) coz this is our damn viewer. 3272 // A) coz this is our damn viewer.
3273 // 2) makes it quicker coz everyone else around you is using it. 3273 // 2) makes it quicker coz everyone else around you is using it.
3274 // III) the client tags list out in the wild is wrong. 3274 // Don't think anyone allocates these tags, so grab one for us to.
3275 // D) Casper sucks cocks, or Casper cocks suck. Probably both. 3275 if(idx == LLUUID("f5788536-508d-4d2a-b6db-bb2b4a19f626"))
3276 if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db"))
3277 { 3276 {
3278 avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);// meta 7 3277 avatar_name_color = LLColor4(0.5f,0.5f,1.0f);//meta-impy
3279 client = "meta 7"; 3278 client = "meta-impy";
3280 } 3279 }
3281 // Imprudence is special to, coz dark blue on black is just unreadable. Pffft. 3280 // Imprudence is special to, coz dark blue on black is just unreadable. Pffft.
3282 // Also in case the user has a local color they prefer.
3283 // This means clientside colors for Imp will always override any on the website.
3284 // If you're going to add a new color, a new UUID needs to be added -- MC 3281 // If you're going to add a new color, a new UUID needs to be added -- MC
3285 else if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) 3282 else if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf"))
3286 { 3283 {
3287 //avatar_name_color = LLColor4(0.79f,0.44f,0.88f);// Imprudence 3284 avatar_name_color = LLColor4(0.79f,0.44f,0.88f);// Imprudence
3288 // defaults to LLColor4(0.79f,0.44f,0.88f)
3289 avatar_name_color = gSavedSettings.getColor4("ImprudenceTagColor"); //Imprudence
3290 client = "Imprudence"; 3285 client = "Imprudence";
3291 } 3286 }
3292 // Don't think anyone allocates these tags, so grab one for us to. 3287 // meta 7 gets special treatment to -
3293 else if(idx == LLUUID("f5788536-508d-4d2a-b6db-bb2b4a19f626")) 3288 // I) the client tags list out in the wild is wrong.
3289 // B) Casper sucks cocks, or Casper cocks suck. Probably both.
3290 else if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db"))
3294 { 3291 {
3295 avatar_name_color = LLColor4(0.5f,0.5f,1.0f);//meta-impy 3292 avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);// meta 7
3296 client = "meta-impy"; 3293 client = "meta 7";
3297 } 3294 }
3298 else if(LLVOAvatar::sClientResolutionList.has("isComplete") 3295 else if(LLVOAvatar::sClientResolutionList.has("isComplete")
3299 && LLVOAvatar::sClientResolutionList.has(idx.asString())) 3296 && LLVOAvatar::sClientResolutionList.has(idx.asString()))
@@ -3305,7 +3302,7 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client,
3305 avatar_name_color += colour; 3302 avatar_name_color += colour;
3306 avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); 3303 avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f);
3307 } 3304 }
3308 else 3305 else // No tag data from the web, try some old defaults.
3309 { 3306 {
3310 if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || 3307 if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") ||
3311 idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) 3308 idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4"))
@@ -3625,8 +3622,8 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3625 } 3622 }
3626 else 3623 else
3627 { 3624 {
3628 // Set your own name to the Imprudence color -- MC 3625 // Set your own name to the meta-impy color -- MC & onefang
3629 client_color = gSavedSettings.getColor4("ImprudenceTagColor"); 3626 client_color = LLColor4(0.5f,0.5f,1.0f);
3630 } 3627 }
3631 3628
3632 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); 3629 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true);