aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhoverview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llhoverview.cpp')
-rw-r--r--linden/indra/newview/llhoverview.cpp38
1 files changed, 31 insertions, 7 deletions
diff --git a/linden/indra/newview/llhoverview.cpp b/linden/indra/newview/llhoverview.cpp
index dd2b562..44ef594 100644
--- a/linden/indra/newview/llhoverview.cpp
+++ b/linden/indra/newview/llhoverview.cpp
@@ -245,14 +245,25 @@ void LLHoverView::updateText()
245 LLNameValue* lastname = hit_object->getNVPair("LastName"); 245 LLNameValue* lastname = hit_object->getNVPair("LastName");
246 if (firstname && lastname) 246 if (firstname && lastname)
247 { 247 {
248 if (title) 248// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e)
249 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
249 { 250 {
250 line.append(title->getString()); 251 line = gRlvHandler.getAnonym(line.append(firstname->getString()).append(1, ' ').append(lastname->getString()));
252 }
253 else
254 {
255// [/RLVa:KB]
256 if (title)
257 {
258 line.append(title->getString());
259 line.append(1, ' ');
260 }
261 line.append(firstname->getString());
251 line.append(1, ' '); 262 line.append(1, ' ');
263 line.append(lastname->getString());
264// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e)
252 } 265 }
253 line.append(firstname->getString()); 266// [/RLVa:KB]
254 line.append(1, ' ');
255 line.append(lastname->getString());
256 } 267 }
257 else 268 else
258 { 269 {
@@ -308,6 +319,13 @@ void LLHoverView::updateText()
308 } 319 }
309 else if(gCacheName->getFullName(owner, name)) 320 else if(gCacheName->getFullName(owner, name))
310 { 321 {
322// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e)
323 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
324 {
325 name = gRlvHandler.getAnonym(name);
326 }
327// [/RLVa:KB]
328
311 line.append(name); 329 line.append(name);
312 } 330 }
313 else 331 else
@@ -469,7 +487,10 @@ void LLHoverView::updateText()
469 line.append(LLTrans::getString("TooltipLand")); 487 line.append(LLTrans::getString("TooltipLand"));
470 if (hover_parcel) 488 if (hover_parcel)
471 { 489 {
472 line.append(hover_parcel->getName()); 490// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | Added: RLVa-0.2.0b
491 line.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ? hover_parcel->getName() : rlv_handler_t::cstrHiddenParcel );
492// [/RLVa:KB]
493 //line.append(hover_parcel->getName());
473 } 494 }
474 mText.push_back(line); 495 mText.push_back(line);
475 496
@@ -498,7 +519,10 @@ void LLHoverView::updateText()
498 } 519 }
499 else if(gCacheName->getFullName(owner, name)) 520 else if(gCacheName->getFullName(owner, name))
500 { 521 {
501 line.append(name); 522// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0b
523 line.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? name : gRlvHandler.getAnonym(name));
524// [/RLVa:KB]
525 //line.append(name);
502 } 526 }
503 else 527 else
504 { 528 {