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/llfloatermap.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/llfloatermap.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp index 3be891e..f7f51fd 100644 --- a/linden/indra/newview/llfloatermap.cpp +++ b/linden/indra/newview/llfloatermap.cpp | |||
@@ -240,6 +240,13 @@ void LLFloaterMap::populateRadar() | |||
240 | std::string fullname = getSelectedName(avatar_ids[i]); | 240 | std::string fullname = getSelectedName(avatar_ids[i]); |
241 | if (!fullname.empty()) | 241 | if (!fullname.empty()) |
242 | { | 242 | { |
243 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
244 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
245 | { | ||
246 | fullname = gRlvHandler.getAnonym(fullname); | ||
247 | } | ||
248 | // [/RLVa:KB] | ||
249 | |||
243 | std::string mute_text = LLMuteList::getInstance()->isMuted(avatar_ids[i]) ? getString("muted") : ""; | 250 | std::string mute_text = LLMuteList::getInstance()->isMuted(avatar_ids[i]) ? getString("muted") : ""; |
244 | element["id"] = avatar_ids[i]; | 251 | element["id"] = avatar_ids[i]; |
245 | element["columns"][0]["column"] = "avatar_name"; | 252 | element["columns"][0]["column"] = "avatar_name"; |
@@ -314,6 +321,33 @@ void LLFloaterMap::toggleButtons() | |||
314 | childSetEnabled("unmute_btn", enable_unmute); | 321 | childSetEnabled("unmute_btn", enable_unmute); |
315 | childSetEnabled("ar_btn", enable); | 322 | childSetEnabled("ar_btn", enable); |
316 | childSetEnabled("estate_eject_btn", enable_estate); | 323 | childSetEnabled("estate_eject_btn", enable_estate); |
324 | |||
325 | // [RLVa:KB] - Imprudence-1.2.0 | ||
326 | // Bit clumsy, but this way the RLV stuff is in its own separate block and keeps the code above clean - Kitty | ||
327 | if ( (rlv_handler_t::isEnabled()) && (mSelectedAvatar.notNull()) ) | ||
328 | { | ||
329 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
330 | { | ||
331 | childSetEnabled("im_btn", FALSE); | ||
332 | childSetEnabled("profile_btn", FALSE); | ||
333 | childSetEnabled("invite_btn", FALSE); | ||
334 | childSetEnabled("add_btn", FALSE); | ||
335 | childSetEnabled("mute_btn", FALSE); | ||
336 | childSetEnabled("unmute_btn", FALSE); | ||
337 | } | ||
338 | |||
339 | // Even though the avie is in the same sim (so they already know where we are) the tp would just get blocked by different code | ||
340 | // so it's actually less confusing to the user if we just disable the teleport button here so they'll at least have a visual cue | ||
341 | BOOL rlv_enable_tp = (!gRlvHandler.hasBehaviour(RLV_BHVR_TPLURE)) || (gRlvHandler.isException(RLV_BHVR_TPLURE, mSelectedAvatar)); | ||
342 | if ( (rlv_enable_tp) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ) | ||
343 | { | ||
344 | const LLRelationship* pBuddyInfo = LLAvatarTracker::instance().getBuddyInfo(mSelectedAvatar); | ||
345 | if ( ((!pBuddyInfo) || (!pBuddyInfo->isOnline()) || (!pBuddyInfo->isRightGrantedTo(LLRelationship::GRANT_MAP_LOCATION))) ) | ||
346 | rlv_enable_tp = FALSE; | ||
347 | } | ||
348 | childSetEnabled("offer_teleport_btn", rlv_enable_tp); | ||
349 | } | ||
350 | // [/RLVa:KB] | ||
317 | } | 351 | } |
318 | 352 | ||
319 | BOOL LLFloaterMap::getKickable(const LLUUID &agent_id) | 353 | BOOL LLFloaterMap::getKickable(const LLUUID &agent_id) |