diff options
author | McCabe Maxsted | 2009-09-24 14:01:21 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-24 14:01:21 -0700 |
commit | da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7 (patch) | |
tree | 9b5f89cff49d785c21d171a27e3b13ef2ee485a5 /linden/indra/newview/llnetmap.cpp | |
parent | Applied particle chat feature from Emerald viewer (tell an object it's select... (diff) | |
download | meta-impy-da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7.zip meta-impy-da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7.tar.gz meta-impy-da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7.tar.bz2 meta-impy-da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7.tar.xz |
Applied RLVa patch for Imprudence 1.2 by Kitty Barnett
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index 97272f4..f055dbc 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -379,7 +379,7 @@ void LLNetMap::draw() | |||
379 | } | 379 | } |
380 | } | 380 | } |
381 | 381 | ||
382 | // [RLVa:KB] | 382 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 |
383 | if ( 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, |
@@ -594,21 +594,14 @@ BOOL LLNetMap::handleToolTip( S32 x, S32 y, std::string& msg, LLRect* sticky_rec | |||
594 | std::string fullname; | 594 | std::string fullname; |
595 | if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) | 595 | if(mClosestAgentToCursor.notNull() && gCacheName->getFullName(mClosestAgentToCursor, fullname)) |
596 | { | 596 | { |
597 | // [RLVa:KB] | 597 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 |
598 | if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES) ) | 598 | // User is not allowed to see who it is, due to RLV settings. |
599 | { | 599 | msg.append( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname) ); |
600 | // User is not allowed to see who it is, due to RLV settings. | 600 | msg.append("\n"); |
601 | msg.append(rlv_handler_t::cstrHidden); | 601 | // [/RLVa:KB] |
602 | } | ||
603 | else | ||
604 | { | ||
605 | msg.append(fullname); | ||
606 | msg.append("\n"); | ||
607 | } | ||
608 | // [/RLVa:KB] | ||
609 | } | 602 | } |
610 | 603 | ||
611 | // [RLVa:KB] | 604 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 |
612 | if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC) ) | 605 | if ( gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC) ) |
613 | { | 606 | { |
614 | // User is not allowed to see where they are, due to RLV settings. | 607 | // User is not allowed to see where they are, due to RLV settings. |
@@ -1018,6 +1011,13 @@ bool LLNetMap::LLEnableTracking::handleEvent(LLPointer<LLEvent> event, const LLS | |||
1018 | 1011 | ||
1019 | bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1012 | bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1020 | { | 1013 | { |
1014 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
1015 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
1016 | { | ||
1017 | return true; | ||
1018 | } | ||
1019 | // [/RLVa:KB] | ||
1020 | |||
1021 | LLNetMap *self = mPtr; | 1021 | LLNetMap *self = mPtr; |
1022 | LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick); | 1022 | LLFloaterAvatarInfo::show(self->mClosestAgentAtLastRightClick); |
1023 | return true; | 1023 | return true; |
@@ -1026,6 +1026,9 @@ bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const L | |||
1026 | bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1026 | bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1027 | { | 1027 | { |
1028 | LLNetMap *self = mPtr; | 1028 | LLNetMap *self = mPtr; |
1029 | self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor()); | 1029 | //self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor()); |
1030 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
1031 | self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor() && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)); | ||
1032 | // [/RLVa:KB] | ||
1030 | return true; | 1033 | return true; |
1031 | } | 1034 | } |