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