aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt11
-rw-r--r--linden/indra/newview/llfloatermap.cpp34
-rw-r--r--linden/indra/newview/llinventorybridge.cpp10
-rw-r--r--linden/indra/newview/llnetmap.cpp33
-rw-r--r--linden/indra/newview/llpanelpermissions.cpp5
-rw-r--r--linden/indra/newview/llwindlightremotectrl.cpp11
6 files changed, 87 insertions, 17 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 8d7a8bb..f4c8c96 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,14 @@
12009-09-24 McCabe Maxsted <hakushakukun@gmail.com>
2
3 * Applied RLVa patch for Imprudence 1.2 by Kitty Barnett.
4
5 modified: linden/indra/newview/llfloatermap.cpp
6 modified: linden/indra/newview/llinventorybridge.cpp
7 modified: linden/indra/newview/llnetmap.cpp
8 modified: linden/indra/newview/llpanelpermissions.cpp
9 modified: linden/indra/newview/llwindlightremotectrl.cpp
10
11
12009-09-22 McCabe Maxsted <hakushakukun@gmail.com> 122009-09-22 McCabe Maxsted <hakushakukun@gmail.com>
2 13
3 * Fixed RLVa issue in LLNetMap the right way (thanks Kitty). 14 * Fixed RLVa issue in LLNetMap the right way (thanks Kitty).
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
319BOOL LLFloaterMap::getKickable(const LLUUID &agent_id) 353BOOL LLFloaterMap::getKickable(const LLUUID &agent_id)
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp
index 19a5ade..618c4f9 100644
--- a/linden/indra/newview/llinventorybridge.cpp
+++ b/linden/indra/newview/llinventorybridge.cpp
@@ -4241,7 +4241,15 @@ void wear_attachments_on_avatar(const std::set<LLUUID>& item_ids, BOOL remove)
4241 { 4241 {
4242 if ( (gInventory.isObjectDescendentOf(*it, gAgent.getInventoryRootID())) ) 4242 if ( (gInventory.isObjectDescendentOf(*it, gAgent.getInventoryRootID())) )
4243 { 4243 {
4244 items.put(item); 4244// items.put(item);
4245// [RLVa:KB] - Checked: 2009-09-11 (RLVa-1.0.2c) | Modified: RLVa-1.0.2c
4246 LLViewerJointAttachment* pAttachPt = NULL;
4247 if ( (!rlv_handler_t::isEnabled()) || (RlvSettings::getEnableWear()) || (!gRlvHandler.hasLockedAttachment()) ||
4248 (((pAttachPt = gRlvHandler.getAttachPoint(item, true)) != NULL) && (gRlvHandler.isDetachable(pAttachPt->getObject()))) )
4249 {
4250 items.put(item);
4251 }
4252// [/RLVa:KB]
4245 } 4253 }
4246 else if ( (item->isComplete()) ) 4254 else if ( (item->isComplete()) )
4247 { 4255 {
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
1019bool LLNetMap::LLShowAgentProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1012bool 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
1026bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 1026bool 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}
diff --git a/linden/indra/newview/llpanelpermissions.cpp b/linden/indra/newview/llpanelpermissions.cpp
index 24bbab6..aa14a90 100644
--- a/linden/indra/newview/llpanelpermissions.cpp
+++ b/linden/indra/newview/llpanelpermissions.cpp
@@ -348,7 +348,10 @@ void LLPanelPermissions::refresh()
348 fRlvEnableOwner && owners_identical && (mOwnerID.notNull() || LLSelectMgr::getInstance()->selectIsGroupOwned())); 348 fRlvEnableOwner && owners_identical && (mOwnerID.notNull() || LLSelectMgr::getInstance()->selectIsGroupOwned()));
349// [/RLVa:KB] 349// [/RLVa:KB]
350 350
351 if (owner_name != last_owner_name) 351 //if (owner_name != last_owner_name)
352// [RLVa:KB]
353 if ( (owner_name != last_owner_name) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) )
354// [/RLVa:KB]
352 { 355 {
353 childSetText("Last Owner Name", last_owner_name); 356 childSetText("Last Owner Name", last_owner_name);
354 childSetEnabled("Last Owner Name", TRUE); 357 childSetEnabled("Last Owner Name", TRUE);
diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp
index 591b413..510e1df 100644
--- a/linden/indra/newview/llwindlightremotectrl.cpp
+++ b/linden/indra/newview/llwindlightremotectrl.cpp
@@ -41,6 +41,9 @@
41#include "llwlparammanager.h" 41#include "llwlparammanager.h"
42#include "llviewercontrol.h" 42#include "llviewercontrol.h"
43 43
44// [RLVa:KB] - Alternate: Imprudence-1.2.0
45#include "rlvhandler.h"
46// [/RLVa:KB]
44 47
45class LLWindlightRemoteObserver : public LLWLPresetsObserver 48class LLWindlightRemoteObserver : public LLWLPresetsObserver
46{ 49{
@@ -85,6 +88,14 @@ void LLWindlightRemoteCtrl::draw()
85 } 88 }
86 } 89 }
87 90
91// [RLVa:KB] - Alternate: Imprudence-1.2.0
92 if (rlv_handler_t::isEnabled())
93 {
94 childSetEnabled("Environment", !gRlvHandler.hasBehaviour(RLV_BHVR_SETENV));
95 mPresetsCombo->setEnabled(!gRlvHandler.hasBehaviour(RLV_BHVR_SETENV));
96 }
97// [/RLVA:KB]
98
88 LLPanel::draw(); 99 LLPanel::draw();
89} 100}
90 101