aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-25 22:14:34 -0500
committerJacek Antonelli2009-09-25 22:14:34 -0500
commita1041a6fa17368e13d610df9d5eb23e307654815 (patch)
tree5f8c22e1bbdeb727600c31ff60f908b785c2faae /linden/indra/newview/llnetmap.cpp
parentMoved "Show HUD Attachments" back to View, restored shortcut. (diff)
parentFixed region names not showing up on regions with zero avatars (diff)
downloadmeta-impy-a1041a6fa17368e13d610df9d5eb23e307654815.zip
meta-impy-a1041a6fa17368e13d610df9d5eb23e307654815.tar.gz
meta-impy-a1041a6fa17368e13d610df9d5eb23e307654815.tar.bz2
meta-impy-a1041a6fa17368e13d610df9d5eb23e307654815.tar.xz
Merge remote branch 'mccabe/1.2.0-next' into next
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r--linden/indra/newview/llnetmap.cpp37
1 files changed, 20 insertions, 17 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 9ef56c1..e848aeb 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -379,8 +379,8 @@ void LLNetMap::draw()
379 } 379 }
380 } 380 }
381 381
382// [RLVa:KB] 382// [RLVa:KB] - Alternate: Imprudence-1.2.0
383 if ( rlv_handler_t::isEnabled() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) ) 383 if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) )
384 { 384 {
385 // User is not allowed to see who it is, or even if it's a friend, 385 // User is not allowed to see who it is, or even if it's a friend,
386 // due to RLV settings. 386 // due to RLV settings.
@@ -604,22 +604,15 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rec
604 std::string fullname; 604 std::string fullname;
605 if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) 605 if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname))
606 { 606 {
607// [RLVa:KB] 607// [RLVa:KB] - Alternate: Imprudence-1.2.0
608 if ( rlv_handler_t::isEnabled() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) ) 608 // User is not allowed to see who it is, due to RLV settings.
609 { 609 msg.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname) );
610 // User is not allowed to see who it is, due to RLV settings. 610 msg.append("\n");
611 msg.append(rlv_handler_t::cstrHidden); 611 // [/RLVa:KB]
612 }
613 else
614 {
615 msg.append(fullname);
616 msg.append("\n");
617 }
618// [/RLVa:KB]
619 } 612 }
620 613
621// [RLVa:KB] 614// [RLVa:KB] - Alternate: Imprudence-1.2.0
622 if (rlv_handler_t::isEnabled() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) 615 if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC) )
623 { 616 {
624 // User is not allowed to see where they are, due to RLV settings. 617 // User is not allowed to see where they are, due to RLV settings.
625 msg.append( rlv_handler_t::cstrHidden ); 618 msg.append( rlv_handler_t::cstrHidden );
@@ -1028,6 +1021,13 @@ bool LLNetMap::LLEnableTracking::handleEvent(LLPointer<LLEvent> event, const LLS
1028 1021
1029bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1022bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
1030{ 1023{
1024// [RLVa:KB] - Alternate: Imprudence-1.2.0
1025 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES))
1026 {
1027 return true;
1028 }
1029// [/RLVa:KB]
1030
1031 LLNetMap *self = mPtr; 1031 LLNetMap *self = mPtr;
1032 LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick); 1032 LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick);
1033 return true; 1033 return true;
@@ -1036,6 +1036,9 @@ bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const L
1036bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1036bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
1037{ 1037{
1038 LLNetMap *self = mPtr; 1038 LLNetMap *self = mPtr;
1039 self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor()); 1039 //self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor());
1040// [RLVa:KB] - Alternate: Imprudence-1.2.0
1041 self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES));
1042// [/RLVa:KB]
1040 return true; 1043 return true;
1041} 1044}