aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/app_settings/settings.xml16
-rw-r--r--linden/indra/newview/llprefscolors.cpp21
-rw-r--r--linden/indra/newview/llprefscolors.h3
-rw-r--r--linden/indra/newview/llvoavatar.cpp379
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml19
5 files changed, 182 insertions, 256 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 166c35a..1fd8d6f 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -1737,22 +1737,6 @@
1737 1737
1738 <!-- Begin: Client Name Tag --> 1738 <!-- Begin: Client Name Tag -->
1739 1739
1740 <key>ImprudenceTagColor</key>
1741 <map>
1742 <key>Comment</key>
1743 <string>Color of Imprudence tags (displayed only locally)</string>
1744 <key>Persist</key>
1745 <integer>1</integer>
1746 <key>Type</key>
1747 <string>Color4</string>
1748 <key>Value</key>
1749 <array>
1750 <real>0.79</real>
1751 <real>0.44</real>
1752 <real>0.88</real>
1753 <real>1</real>
1754 </array>
1755 </map>
1756 <key>ShowClientColor</key> 1740 <key>ShowClientColor</key>
1757 <map> 1741 <map>
1758 <key>Comment</key> 1742 <key>Comment</key>
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp
index 0b4caf5..7d69eaf 100644
--- a/linden/indra/newview/llprefscolors.cpp
+++ b/linden/indra/newview/llprefscolors.cpp
@@ -82,10 +82,6 @@ BOOL LLPrefsColors::postBuild()
82 82
83 getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); 83 getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor"));
84 84
85 getChild<LLColorSwatchCtrl>("client_tag_color")->set(gSavedSettings.getColor4("ImprudenceTagColor"));
86 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true);
87 childSetValue("client_name_color_check", (*sShowClientColor));
88
89 return TRUE; 85 return TRUE;
90} 86}
91 87
@@ -103,7 +99,6 @@ void LLPrefsColors::refreshColors()
103 mFriendsChatColor = gSavedSettings.getColor4("FriendsChatColor"); 99 mFriendsChatColor = gSavedSettings.getColor4("FriendsChatColor");
104 mOwnNameChatColor = gSavedSettings.getColor4("OwnNameChatColor"); 100 mOwnNameChatColor = gSavedSettings.getColor4("OwnNameChatColor");
105 mEffectColor = gSavedSettings.getColor4("EffectColor"); 101 mEffectColor = gSavedSettings.getColor4("EffectColor");
106 mClientTagColor = gSavedSettings.getColor4("ImprudenceTagColor");
107} 102}
108 103
109// static 104// static
@@ -135,18 +130,6 @@ void LLPrefsColors::updateFriendsCheck()
135 getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); 130 getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat"));
136} 131}
137 132
138// static
139void LLPrefsColors::onCommitCheckClient(LLUICtrl* ctrl, void* userdata)
140{
141 LLPrefsColors* self = (LLPrefsColors*)userdata;
142 self->updateClientCheck();
143}
144
145void LLPrefsColors::updateClientCheck()
146{
147 getChild<LLColorSwatchCtrl>("client_tag_color")->setEnabled(childGetValue("client_name_color_checkt"));
148}
149
150void LLPrefsColors::cancel() 133void LLPrefsColors::cancel()
151{ 134{
152 gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); 135 gSavedSettings.setColor4("SystemChatColor", mSystemChatColor);
@@ -161,7 +144,6 @@ void LLPrefsColors::cancel()
161 gSavedSettings.setColor4("FriendsChatColor", mFriendsChatColor); 144 gSavedSettings.setColor4("FriendsChatColor", mFriendsChatColor);
162 gSavedSettings.setColor4("OwnNameChatColor", mOwnNameChatColor); 145 gSavedSettings.setColor4("OwnNameChatColor", mOwnNameChatColor);
163 gSavedSettings.setColor4("EffectColor", mEffectColor); 146 gSavedSettings.setColor4("EffectColor", mEffectColor);
164 gSavedSettings.setColor4("ImprudenceTagColor", mClientTagColor);
165} 147}
166 148
167void LLPrefsColors::apply() 149void LLPrefsColors::apply()
@@ -198,8 +180,5 @@ void LLPrefsColors::apply()
198 180
199 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); 181 gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
200 182
201 gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check"));
202 gSavedSettings.setColor4("ImprudenceTagColor", getChild<LLColorSwatchCtrl>("client_tag_color")->get());
203
204 refreshColors(); // member values become the official values and cancel becomes a no-op. 183 refreshColors(); // member values become the official values and cancel becomes a no-op.
205} 184}
diff --git a/linden/indra/newview/llprefscolors.h b/linden/indra/newview/llprefscolors.h
index d580add..88ea371 100644
--- a/linden/indra/newview/llprefscolors.h
+++ b/linden/indra/newview/llprefscolors.h
@@ -47,11 +47,9 @@ public:
47private: 47private:
48 static void onCommitCheckSelfName(LLUICtrl* ctrl, void* userdata); 48 static void onCommitCheckSelfName(LLUICtrl* ctrl, void* userdata);
49 static void onCommitCheckFriends(LLUICtrl* ctrl, void* userdata); 49 static void onCommitCheckFriends(LLUICtrl* ctrl, void* userdata);
50 static void onCommitCheckClient(LLUICtrl* ctrl, void* userdata);
51 void refreshColors(); 50 void refreshColors();
52 void updateFriendsCheck(); 51 void updateFriendsCheck();
53 void updateSelfCheck(); 52 void updateSelfCheck();
54 void updateClientCheck();
55 53
56 LLColor4 mSystemChatColor; 54 LLColor4 mSystemChatColor;
57 LLColor4 mUserChatColor; 55 LLColor4 mUserChatColor;
@@ -65,7 +63,6 @@ private:
65 LLColor4 mFriendsChatColor; 63 LLColor4 mFriendsChatColor;
66 LLColor4 mOwnNameChatColor; 64 LLColor4 mOwnNameChatColor;
67 LLColor4 mEffectColor; 65 LLColor4 mEffectColor;
68 LLColor4 mClientTagColor;
69}; 66};
70 67
71#endif //LLPREFSCOLORS_H 68#endif //LLPREFSCOLORS_H
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 11f4857..596e39c 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3267,18 +3267,8 @@ bool LLVOAvatar::loadClientTags()
3267void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar) 3267void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar)
3268{ 3268{
3269 LLUUID idx = avatar->getTE(0)->getID(); 3269 LLUUID idx = avatar->getTE(0)->getID();
3270 3270 if(LLVOAvatar::sClientResolutionList.has("isComplete")
3271 // We start locally with Imprudence in case the user has a local color they prefer. 3271 && LLVOAvatar::sClientResolutionList.has(idx.asString()))
3272 // This means clientside colors for Imp will always override any on the website.
3273 // If you're going to add a new color, a new UUID needs to be added -- MC
3274 if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf"))
3275 {
3276 // defaults to LLColor4(0.79f,0.44f,0.88f)
3277 avatar_name_color = gSavedSettings.getColor4("ImprudenceTagColor"); //Imprudence
3278 client = "Imprudence";
3279 }
3280 else if (LLVOAvatar::sClientResolutionList.has("isComplete") &&
3281 LLVOAvatar::sClientResolutionList.has(idx.asString()))
3282 { 3272 {
3283 LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()]; 3273 LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()];
3284 client = cllsd["name"].asString(); 3274 client = cllsd["name"].asString();
@@ -3287,193 +3277,186 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client,
3287 avatar_name_color += colour; 3277 avatar_name_color += colour;
3288 avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); 3278 avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f);
3289 } 3279 }
3290 else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || 3280 else
3281 {
3282
3283 if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf"))
3284 {
3285 avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence
3286 client = "Imprudence";
3287
3288 }else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") ||
3291 idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) 3289 idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4"))
3292 { 3290 {
3293 avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat 3291 avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat
3294 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3292 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3295 client = "Meerkat"; 3293 client = "Meerkat";
3296 } 3294 }else if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db"))
3297 else if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db")) 3295 {
3298 { 3296 avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7
3299 avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7 3297 client = "Meta7";
3300 client = "Meta7"; 3298 }else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218"))
3301 } 3299 {
3302 else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218")) 3300 avatar_name_color += LLColor4::green;//emerald
3303 { 3301 avatar_name_color += LLColor4::green;
3304 avatar_name_color += LLColor4::green;//emerald 3302 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3305 avatar_name_color += LLColor4::green; 3303 client = "Emerald";
3306 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3304 }else if(idx == LLUUID("c252d89d-6f7c-7d90-f430-d140d2e3fbbe"))
3307 client = "Emerald"; 3305 {
3308 } 3306 avatar_name_color += LLColor4::red;//vlife jcool410
3309 else if(idx == LLUUID("c252d89d-6f7c-7d90-f430-d140d2e3fbbe")) 3307 avatar_name_color = avatar_name_color * 0.5;
3310 { 3308 client = "VLife";
3311 avatar_name_color += LLColor4::red;//vlife jcool410 3309 }else if(idx == LLUUID("adcbe893-7643-fd12-f61c-0b39717e2e32"))
3312 avatar_name_color = avatar_name_color * 0.5; 3310 {
3313 client = "VLife"; 3311 avatar_name_color += LLColor4::pink;//tyk3n
3314 } 3312 avatar_name_color = avatar_name_color * 0.5;
3315 else if(idx == LLUUID("adcbe893-7643-fd12-f61c-0b39717e2e32")) 3313 client = "tyk3n";
3316 { 3314 }else if(idx == LLUUID("f3fd74a6-fee7-4b2f-93ae-ddcb5991da04") ||
3317 avatar_name_color += LLColor4::pink;//tyk3n 3315 idx == LLUUID("77662f23-c77a-9b4d-5558-26b757b2144c"))
3318 avatar_name_color = avatar_name_color * 0.5; 3316 {
3319 client = "tyk3n"; 3317 avatar_name_color += (LLColor4::purple);//psl
3320 } 3318 avatar_name_color = avatar_name_color * 0.5;
3321 else if(idx == LLUUID("f3fd74a6-fee7-4b2f-93ae-ddcb5991da04") || 3319 client = "PSL";
3322 idx == LLUUID("77662f23-c77a-9b4d-5558-26b757b2144c")) 3320 }else if(idx == LLUUID("5aa5c70d-d787-571b-0495-4fc1bdef1500"))
3323 { 3321 {
3324 avatar_name_color += (LLColor4::purple);//psl 3322 avatar_name_color += LLColor4::red;//lordgreg
3325 avatar_name_color = avatar_name_color * 0.5; 3323 avatar_name_color += LLColor4::red;
3326 client = "PSL"; 3324 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3327 } 3325 client = "LGG proxy";
3328 else if(idx == LLUUID("5aa5c70d-d787-571b-0495-4fc1bdef1500")) 3326 }else if(idx == LLUUID("8183e823-c443-2142-6eb6-2ab763d4f81c"))
3329 { 3327 {
3330 avatar_name_color += LLColor4::red;//lordgreg 3328 avatar_name_color += LLColor4::blue;//day oh
3331 avatar_name_color += LLColor4::red; 3329 avatar_name_color = avatar_name_color * 0.5;
3332 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3330 client = "Day Oh proxy";
3333 client = "LGG proxy"; 3331 }else if(idx == LLUUID("e52d21f7-3c8b-819f-a3db-65c432295dac") ||
3334 } 3332 idx == LLUUID("0f6723d2-5b23-6b58-08ab-308112b33786") ||
3335 else if(idx == LLUUID("8183e823-c443-2142-6eb6-2ab763d4f81c")) 3333 idx == LLUUID("7c4d47a3-0c51-04d1-fa47-e4f3ac12f59b") ||
3336 { 3334 idx == LLUUID("d0091f21-1eef-a4ad-b358-249a8e5432ea"))
3337 avatar_name_color += LLColor4::blue;//day oh 3335 {
3338 avatar_name_color = avatar_name_color * 0.5; 3336 avatar_name_color += LLColor4::cyan;//cryolife
3339 client = "Day Oh proxy"; 3337 avatar_name_color += LLColor4::cyan;
3340 } 3338 avatar_name_color = avatar_name_color * 0.5;
3341 else if(idx == LLUUID("e52d21f7-3c8b-819f-a3db-65c432295dac") || 3339 client = "CryoLife";
3342 idx == LLUUID("0f6723d2-5b23-6b58-08ab-308112b33786") || 3340 }else if(idx == LLUUID("0bcd5f5d-a4ce-9ea4-f9e8-15132653b3d8"))
3343 idx == LLUUID("7c4d47a3-0c51-04d1-fa47-e4f3ac12f59b") || 3341 {
3344 idx == LLUUID("d0091f21-1eef-a4ad-b358-249a8e5432ea")) 3342 avatar_name_color += LLColor4::pink;//moy
3345 { 3343 avatar_name_color += LLColor4::pink;//moy
3346 avatar_name_color += LLColor4::cyan;//cryolife 3344 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3347 avatar_name_color += LLColor4::cyan; 3345 client = "MoyMix";
3348 avatar_name_color = avatar_name_color * 0.5; 3346 }else if(idx == LLUUID("f5a48821-9a98-d09e-8d6a-50cc08ba9a47") ||
3349 client = "CryoLife"; 3347 idx == LLUUID("d95e0d9a-4d40-ea1b-a054-8db87f583f58"))
3350 } 3348 {
3351 else if(idx == LLUUID("0bcd5f5d-a4ce-9ea4-f9e8-15132653b3d8")) 3349 avatar_name_color += LLColor4::yellow;//neil
3352 { 3350 avatar_name_color += LLColor4::yellow;//neil
3353 avatar_name_color += LLColor4::pink;//moy 3351 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3354 avatar_name_color += LLColor4::pink;//moy 3352 client = "NeilLife";
3355 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3353 }else if(idx == LLUUID("2c9c1e0b-e5d1-263e-16b1-7fc6d169f3d6"))
3356 client = "MoyMix"; 3354 {
3357 } 3355 avatar_name_color += LLColor4(0.0f,1.0f,1.0f);
3358 else if(idx == LLUUID("f5a48821-9a98-d09e-8d6a-50cc08ba9a47") || 3356 avatar_name_color = avatar_name_color * 0.5;//phox
3359 idx == LLUUID("d95e0d9a-4d40-ea1b-a054-8db87f583f58")) 3357 client = "PhoxSL";
3360 { 3358 }else if(idx == LLUUID("c5b570ca-bb7e-3c81-afd1-f62646b20014"))
3361 avatar_name_color += LLColor4::yellow;//neil 3359 {
3362 avatar_name_color += LLColor4::yellow;//neil 3360 avatar_name_color += LLColor4::white;
3363 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3361 avatar_name_color += LLColor4::white;
3364 client = "NeilLife"; 3362 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3365 } 3363 client = "Kung Fu";
3366 else if(idx == LLUUID("2c9c1e0b-e5d1-263e-16b1-7fc6d169f3d6")) 3364 }else if(idx == LLUUID("9422e9d7-7b11-83e4-6262-4a8db4716a3b"))
3367 { 3365 {
3368 avatar_name_color += LLColor4(0.0f,1.0f,1.0f); 3366 avatar_name_color += LLColor4::magenta;
3369 avatar_name_color = avatar_name_color * 0.5;//phox 3367 avatar_name_color += LLColor4::magenta;
3370 client = "PhoxSL"; 3368 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3371 } 3369 client = "BetaLife";
3372 else if(idx == LLUUID("c5b570ca-bb7e-3c81-afd1-f62646b20014")) 3370 }else if(idx == LLUUID("872c0005-3095-0967-866d-11cd71115c22"))
3373 { 3371 {
3374 avatar_name_color += LLColor4::white; 3372 avatar_name_color += LLColor4::green;//SimFed Poland
3375 avatar_name_color += LLColor4::white; 3373 avatar_name_color += LLColor4::blue;//SimFed Poland
3376 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3374 avatar_name_color += LLColor4::blue;//SimFed Poland
3377 client = "Kung Fu"; 3375 avatar_name_color = avatar_name_color * 0.5;
3378 } 3376 client = "Copybotter";
3379 else if(idx == LLUUID("9422e9d7-7b11-83e4-6262-4a8db4716a3b")) 3377 }else if(idx == LLUUID("3ab7e2fa-9572-ef36-1a30-d855dbea4f92") || //wat
3380 { 3378 idx == LLUUID("11ad2452-ce54-8d65-7c23-05589b59f516") ||//wat.
3381 avatar_name_color += LLColor4::magenta; 3379 idx == LLUUID("e734563e-1c31-2a35-3ed5-8552c807439f") ||//wat.
3382 avatar_name_color += LLColor4::magenta; 3380 idx == LLUUID("58a8b7ec-1455-7162-5d96-d3c3ead2ed71") ||//wat
3383 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3381 idx == LLUUID("841ef25b-3b90-caf9-ea3d-5649e755db65")) //wat -.-
3384 client = "BetaLife"; 3382 {
3385 } 3383 avatar_name_color += LLColor4(0.0f,0.5f,1.0f);
3386 else if(idx == LLUUID("872c0005-3095-0967-866d-11cd71115c22")) 3384 avatar_name_color = avatar_name_color * 0.5;
3387 { 3385 client = "VerticalLife";
3388 avatar_name_color += LLColor4::green;//SimFed Poland 3386 }else if(idx == LLUUID("4e8dcf80-336b-b1d8-ef3e-08dacf015a0f"))
3389 avatar_name_color += LLColor4::blue;//SimFed Poland 3387 {
3390 avatar_name_color += LLColor4::blue;//SimFed Poland 3388 avatar_name_color += LLColor4::blue; //Sapphire
3391 avatar_name_color = avatar_name_color * 0.5; 3389 avatar_name_color += LLColor4::blue; //Sapphire
3392 client = "Copybotter"; 3390 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3393 } 3391 client = "Sapphire";
3394 else if(idx == LLUUID("3ab7e2fa-9572-ef36-1a30-d855dbea4f92") || //wat 3392 }else if(idx == LLUUID("ffce04ff-5303-4909-a044-d37af7ab0b0e"))
3395 idx == LLUUID("11ad2452-ce54-8d65-7c23-05589b59f516") ||//wat. 3393 {
3396 idx == LLUUID("e734563e-1c31-2a35-3ed5-8552c807439f") ||//wat. 3394 avatar_name_color += LLColor4::orange; //corgiVision
3397 idx == LLUUID("58a8b7ec-1455-7162-5d96-d3c3ead2ed71") ||//wat 3395 avatar_name_color = avatar_name_color * (F32)0.75;
3398 idx == LLUUID("841ef25b-3b90-caf9-ea3d-5649e755db65")) //wat -.- 3396 client = "Corgi";
3399 { 3397 }else if(idx == LLUUID("ccb509cf-cc69-e569-38f1-5086c687afd1"))
3400 avatar_name_color += LLColor4(0.0f,0.5f,1.0f); 3398 {
3401 avatar_name_color = avatar_name_color * 0.5; 3399 avatar_name_color += LLColor4::red; //Ruby
3402 client = "VerticalLife"; 3400 avatar_name_color += LLColor4::purple; //Ruby
3403 }else if(idx == LLUUID("4e8dcf80-336b-b1d8-ef3e-08dacf015a0f")) 3401 avatar_name_color = avatar_name_color * (F32)0.333333333333;
3404 { 3402 client = "Ruby";
3405 avatar_name_color += LLColor4::blue; //Sapphire 3403 }else if(idx == LLUUID("1c29480c-c608-df87-28bb-964fb64c5366"))
3406 avatar_name_color += LLColor4::blue; //Sapphire 3404 {
3407 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3405 avatar_name_color += LLColor4::yellow9;
3408 client = "Sapphire"; 3406 avatar_name_color += LLColor4::yellow9;
3409 }else if(idx == LLUUID("ffce04ff-5303-4909-a044-d37af7ab0b0e")) 3407 avatar_name_color *= (F32)0.333333333333;
3410 { 3408 client = "Gemini";
3411 avatar_name_color += LLColor4::orange; //corgiVision 3409 }
3412 avatar_name_color = avatar_name_color * (F32)0.75; 3410 else if(idx == LLUUID("3da8a69a-58ca-023f-2161-57f2ab3b5702"))
3413 client = "Corgi"; 3411 {
3414 }else if(idx == LLUUID("ccb509cf-cc69-e569-38f1-5086c687afd1")) 3412 avatar_name_color = LLColor4(1.0f,1.0f,1.0f);
3415 { 3413 client = "Operator";
3416 avatar_name_color += LLColor4::red; //Ruby 3414 }
3417 avatar_name_color += LLColor4::purple; //Ruby 3415 else if(idx == LLUUID("4da16427-d81e-e816-f346-aaf4741b8056"))
3418 avatar_name_color = avatar_name_color * (F32)0.333333333333; 3416 {
3419 client = "Ruby"; 3417 avatar_name_color = LLColor4(2.0f,2.0f,2.0f);
3420 }else if(idx == LLUUID("1c29480c-c608-df87-28bb-964fb64c5366")) 3418 avatar_name_color *= 0.33f;
3421 { 3419 client = "iLife";
3422 avatar_name_color += LLColor4::yellow9; 3420 }
3423 avatar_name_color += LLColor4::yellow9; 3421 else if(idx == LLUUID("5262d71a-88f7-ef40-3b15-00ea148ab4b5"))
3424 avatar_name_color *= (F32)0.333333333333; 3422 {
3425 client = "Gemini"; 3423 avatar_name_color = LLColor4(1.0f,1.0f,1.0f);
3426 } 3424 client = "Gemini.Bot";
3427 else if(idx == LLUUID("3da8a69a-58ca-023f-2161-57f2ab3b5702")) 3425 }
3428 { 3426 else if(idx == LLUUID("81b3e921-ee31-aa57-ff9b-ec1f28e41da1"))
3429 avatar_name_color = LLColor4(1.0f,1.0f,1.0f); 3427 {
3430 client = "Operator"; 3428 avatar_name_color = LLColor4(1.0f,1.0f,1.0f);
3431 } 3429 client = "Infinity";
3432 else if(idx == LLUUID("4da16427-d81e-e816-f346-aaf4741b8056")) 3430 }
3433 { 3431 else if(idx == LLUUID("d3eb4a5f-aec5-4bcb-b007-cce9efe89d37"))
3434 avatar_name_color = LLColor4(2.0f,2.0f,2.0f); 3432 {
3435 avatar_name_color *= 0.33f; 3433 avatar_name_color = LLColor4(0.0f,0.6f,0.0f);
3436 client = "iLife"; 3434 avatar_name_color *= 0.33f;
3437 } 3435 client = "rivlife";
3438 else if(idx == LLUUID("5262d71a-88f7-ef40-3b15-00ea148ab4b5")) 3436 }
3439 { 3437 else if(idx == LLUUID("f12457b5-762e-52a7-efad-8f17f3b022ee"))
3440 avatar_name_color = LLColor4(1.0f,1.0f,1.0f); 3438 {
3441 client = "Gemini.Bot"; 3439 avatar_name_color = LLColor4(0.69f,0.8f,1.6f);
3442 } 3440 avatar_name_color *= 0.5f;
3443 else if(idx == LLUUID("81b3e921-ee31-aa57-ff9b-ec1f28e41da1")) 3441 client = "Anti-Life";
3444 { 3442 }
3445 avatar_name_color = LLColor4(1.0f,1.0f,1.0f); 3443 else if(idx == LLUUID("f5feab57-bde5-2074-97af-517290213eaa") ||
3446 client = "Infinity"; 3444 idx == LLUUID("e6f9c019-8783-dc3e-b265-41f1510333fc"))
3447 } 3445 {
3448 else if(idx == LLUUID("d3eb4a5f-aec5-4bcb-b007-cce9efe89d37")) 3446 avatar_name_color = LLColor4(0.4f,0.4f,0.4f);
3449 { 3447 client = "Onyx";
3450 avatar_name_color = LLColor4(0.0f,0.6f,0.0f); 3448 }
3451 avatar_name_color *= 0.33f; 3449 else if(idx == LLUUID("c58fca06-33b3-827d-d81c-a886a631affc"))
3452 client = "rivlife"; 3450 {
3453 } 3451 avatar_name_color = LLColor4(1.0f,0.61176f,0.0f);
3454 else if(idx == LLUUID("f12457b5-762e-52a7-efad-8f17f3b022ee")) 3452 client = "Whale";
3455 { 3453 }
3456 avatar_name_color = LLColor4(0.69f,0.8f,1.6f); 3454 else if(idx == LLUUID("9ba526b6-f43d-6b60-42de-ce62a25ee7fb"))
3457 avatar_name_color *= 0.5f; 3455 {
3458 client = "Anti-Life"; 3456 avatar_name_color = LLColor4(1.0f,1.0f,1.0f);
3459 } 3457 client = "nolife";
3460 else if(idx == LLUUID("f5feab57-bde5-2074-97af-517290213eaa") || 3458 }
3461 idx == LLUUID("e6f9c019-8783-dc3e-b265-41f1510333fc"))
3462 {
3463 avatar_name_color = LLColor4(0.4f,0.4f,0.4f);
3464 client = "Onyx";
3465 }
3466 else if(idx == LLUUID("c58fca06-33b3-827d-d81c-a886a631affc"))
3467 {
3468 avatar_name_color = LLColor4(1.0f,0.61176f,0.0f);
3469 client = "Whale";
3470 }
3471 else if(idx == LLUUID("9ba526b6-f43d-6b60-42de-ce62a25ee7fb"))
3472 {
3473 avatar_name_color = LLColor4(1.0f,1.0f,1.0f);
3474 client = "nolife";
3475 } 3459 }
3476
3477 if(client.empty()) 3460 if(client.empty())
3478 { 3461 {
3479 LLPointer<LLViewerImage> image_point = gImageList.getImage(idx, MIPMAP_YES, IMMEDIATE_NO); 3462 LLPointer<LLViewerImage> image_point = gImageList.getImage(idx, MIPMAP_YES, IMMEDIATE_NO);
@@ -3623,7 +3606,7 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3623 else 3606 else
3624 { 3607 {
3625 // Set your own name to the Imprudence color -- MC 3608 // Set your own name to the Imprudence color -- MC
3626 client_color = gSavedSettings.getColor4("ImprudenceTagColor"); 3609 client_color = LLColor4(0.79f,0.44f,0.88f);
3627 } 3610 }
3628 3611
3629 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); 3612 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true);
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml
index 9b55822..04e71d4 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml
@@ -33,24 +33,7 @@ USE left="270" FOR TABBING OPTIONS
33 tool_tip="Click to open Color Picker" width="65" /> 33 tool_tip="Click to open Color Picker" width="65" />
34 34
35 35
36 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 36 <view_border bevel_style="none" border_thickness="1" bottom_delta="0" follows="left|top"
37 bottom="-20" drop_shadow_visible="true" enabled="true" follows="left|top" font-style="BOLD|SHADOW"
38 font="SansSerifSmall" h_pad="0" halign="left" height="10" left="270"
39 mouse_opaque="true" name="client_tag_color_textbox" v_pad="0" width="394">
40 Client Tag Color:
41 </text>
42 <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-80"
43 can_apply_immediately="true" color="0.79 0.44 0.88 1"
44 enabled="true" follows="left|top"
45 height="65" label="Imprudence" left_delta="30" mouse_opaque="true"
46 name="client_tag_color" width="65" />
47 <check_box bottom_delta="45" enabled="true" follows="left|top"
48 font="SansSerifSmall" height="16" initial_value="false"
49 label="Color client tags" left_delta="76" mouse_opaque="true"
50 name="client_name_color_check" radio_style="false" width="160" />
51
52
53 <view_border bevel_style="none" border_thickness="1" bottom_delta="-60" follows="left|top"
54 height="1" left="55" name="border" width="380" /> 37 height="1" left="55" name="border" width="380" />
55 38
56 39