diff options
author | Jacek Antonelli | 2009-09-04 01:56:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-04 03:39:51 -0500 |
commit | 89a510de10c48ebcf82b98a962e4bf66477dcc93 (patch) | |
tree | d30f79f433badffe36a67fc155e70a0e29dd2dc4 /linden/indra/newview/llhoverview.cpp | |
parent | Backported 1.23 fix for animation joint assertion crash. (diff) | |
download | meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.zip meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.gz meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.bz2 meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.xz |
Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch.
Made a few non-functional changes to help it apply.
Diffstat (limited to 'linden/indra/newview/llhoverview.cpp')
-rw-r--r-- | linden/indra/newview/llhoverview.cpp | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/linden/indra/newview/llhoverview.cpp b/linden/indra/newview/llhoverview.cpp index 8d033b2..e40ae10 100644 --- a/linden/indra/newview/llhoverview.cpp +++ b/linden/indra/newview/llhoverview.cpp | |||
@@ -244,14 +244,25 @@ void LLHoverView::updateText() | |||
244 | LLNameValue* lastname = hit_object->getNVPair("LastName"); | 244 | LLNameValue* lastname = hit_object->getNVPair("LastName"); |
245 | if (firstname && lastname) | 245 | if (firstname && lastname) |
246 | { | 246 | { |
247 | if (title) | 247 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) |
248 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
248 | { | 249 | { |
249 | line.append(title->getString()); | 250 | line = gRlvHandler.getAnonym(line.append(firstname->getString()).append(1, ' ').append(lastname->getString())); |
251 | } | ||
252 | else | ||
253 | { | ||
254 | // [/RLVa:KB] | ||
255 | if (title) | ||
256 | { | ||
257 | line.append(title->getString()); | ||
258 | line.append(1, ' '); | ||
259 | } | ||
260 | line.append(firstname->getString()); | ||
250 | line.append(1, ' '); | 261 | line.append(1, ' '); |
262 | line.append(lastname->getString()); | ||
263 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
251 | } | 264 | } |
252 | line.append(firstname->getString()); | 265 | // [/RLVa:KB] |
253 | line.append(1, ' '); | ||
254 | line.append(lastname->getString()); | ||
255 | } | 266 | } |
256 | else | 267 | else |
257 | { | 268 | { |
@@ -307,6 +318,13 @@ void LLHoverView::updateText() | |||
307 | } | 318 | } |
308 | else if(gCacheName->getFullName(owner, name)) | 319 | else if(gCacheName->getFullName(owner, name)) |
309 | { | 320 | { |
321 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
322 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
323 | { | ||
324 | name = gRlvHandler.getAnonym(name); | ||
325 | } | ||
326 | // [/RLVa:KB] | ||
327 | |||
310 | line.append(name); | 328 | line.append(name); |
311 | } | 329 | } |
312 | else | 330 | else |
@@ -468,7 +486,10 @@ void LLHoverView::updateText() | |||
468 | line.append(LLTrans::getString("TooltipLand")); | 486 | line.append(LLTrans::getString("TooltipLand")); |
469 | if (hover_parcel) | 487 | if (hover_parcel) |
470 | { | 488 | { |
471 | line.append(hover_parcel->getName()); | 489 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | Added: RLVa-0.2.0b |
490 | line.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ? hover_parcel->getName() : rlv_handler_t::cstrHiddenParcel ); | ||
491 | // [/RLVa:KB] | ||
492 | //line.append(hover_parcel->getName()); | ||
472 | } | 493 | } |
473 | mText.push_back(line); | 494 | mText.push_back(line); |
474 | 495 | ||
@@ -497,7 +518,10 @@ void LLHoverView::updateText() | |||
497 | } | 518 | } |
498 | else if(gCacheName->getFullName(owner, name)) | 519 | else if(gCacheName->getFullName(owner, name)) |
499 | { | 520 | { |
500 | line.append(name); | 521 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0b |
522 | line.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? name : gRlvHandler.getAnonym(name)); | ||
523 | // [/RLVa:KB] | ||
524 | //line.append(name); | ||
501 | } | 525 | } |
502 | else | 526 | else |
503 | { | 527 | { |