aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llnetmap.cpp57
1 files changed, 23 insertions, 34 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 2b9810d..ec04337 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -370,7 +370,14 @@ void LLNetMap::draw()
370 else 370 else
371 { 371 {
372 // Show them muted even if they're friends 372 // Show them muted even if they're friends
373 if (LLMuteList::getInstance()->isMuted(avatar_ids[i])) 373// [RLVa:KB] - Version: 1.23.4 | Alternate: Imprudence-1.3 | Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-0.2.0b
374 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
375 {
376 glyph_color = avatar_color;
377 }
378 else if (LLMuteList::getInstance()->isMuted(avatar_ids[i]))
379// [/RLVa:KB]
380// if (LLMuteList::getInstance()->isMuted(avatar_ids[i]))
374 { 381 {
375 glyph_color = muted_color; 382 glyph_color = muted_color;
376 } 383 }
@@ -388,15 +395,6 @@ void LLNetMap::draw()
388 } 395 }
389 } 396 }
390 397
391// [RLVa:KB] - Alternate: Imprudence-1.2.0
392 if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) )
393 {
394 // User is not allowed to see who it is, or even if it's a friend,
395 // due to RLV settings.
396 glyph_color = avatar_color;
397 }
398// [/RLVa:KB]
399
400 LLWorldMapView::drawAvatar( 398 LLWorldMapView::drawAvatar(
401 pos_map.mV[VX], pos_map.mV[VY], 399 pos_map.mV[VX], pos_map.mV[VY],
402 glyph_color, 400 glyph_color,
@@ -624,26 +622,17 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rec
624 std::string fullname; 622 std::string fullname;
625 if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) 623 if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname))
626 { 624 {
627// [RLVa:KB] - Alternate: Imprudence-1.2.0 625// msg.append(fullname);
628 // User is not allowed to see who it is, due to RLV settings. 626// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-0.2.0b
629 msg.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname) ); 627 msg.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname) );
628// [/RLVa:KB]
630 msg.append("\n"); 629 msg.append("\n");
631 // [/RLVa:KB]
632 } 630 }
633 631
634// [RLVa:KB] - Alternate: Imprudence-1.2.0 632// msg.append( region->getName() );
635 if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC) ) 633// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-04 (RLVa-1.0.0a) | Modified: RLVa-0.2.0b
636 { 634 msg.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ? region->getName() : rlv_handler_t::cstrHidden );
637 // User is not allowed to see where they are, due to RLV settings.
638 msg.append( rlv_handler_t::cstrHidden );
639 }
640 else
641 {
642 msg.append( region->getName() );
643 }
644// [/RLVa:KB] 635// [/RLVa:KB]
645
646
647 msg.append("\n"); 636 msg.append("\n");
648 gSavedSettings.getBOOL( "MiniMapTeleport" ) ? 637 gSavedSettings.getBOOL( "MiniMapTeleport" ) ?
649 msg.append(getString("tooltip_tp")) : msg.append(getString("tooltip_map")); 638 msg.append(getString("tooltip_tp")) : msg.append(getString("tooltip_map"));
@@ -1043,24 +1032,24 @@ bool LLNetMap::LLEnableTracking::handleEvent(LLPointer<LLEvent> event, const LLS
1043 1032
1044bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1033bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
1045{ 1034{
1046// [RLVa:KB] - Alternate: Imprudence-1.2.0 1035 LLNetMap *self = mPtr;
1047 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) 1036// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-0.2.0b
1037 if (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
1048 { 1038 {
1049 return true; 1039 LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick);
1050 } 1040 }
1051// [/RLVa:KB] 1041// [/RLVa:KB]
1052 1042 //LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick);
1053 LLNetMap *self = mPtr;
1054 LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick);
1055 return true; 1043 return true;
1056} 1044}
1057 1045
1058bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1046bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
1059{ 1047{
1060 LLNetMap *self = mPtr; 1048 LLNetMap *self = mPtr;
1061 //self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor()); 1049// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-0.2.0b
1062// [RLVa:KB] - Alternate: Imprudence-1.2.0 1050 self->findControl(userdata["control"].asString())->setValue(
1063 self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)); 1051 (self->isAgentUnderCursor()) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) );
1064// [/RLVa:KB] 1052// [/RLVa:KB]
1053 //self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor());
1065 return true; 1054 return true;
1066} 1055}