aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterobjectiminfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterobjectiminfo.cpp')
-rw-r--r--linden/indra/newview/llfloaterobjectiminfo.cpp33
1 files changed, 30 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterobjectiminfo.cpp b/linden/indra/newview/llfloaterobjectiminfo.cpp
index 7ef3af2..fa7964c 100644
--- a/linden/indra/newview/llfloaterobjectiminfo.cpp
+++ b/linden/indra/newview/llfloaterobjectiminfo.cpp
@@ -47,6 +47,10 @@
47#include "llurldispatcher.h" 47#include "llurldispatcher.h"
48#include "llviewercontrol.h" 48#include "llviewercontrol.h"
49 49
50// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-04 (RLVa-1.0.0a) | Added: RLVa-0.2.0g
51#include "rlvhandler.h"
52// [/RLVa:KB]
53
50//////////////////////////////////////////////////////////////////////////// 54////////////////////////////////////////////////////////////////////////////
51// LLFloaterObjectIMInfo 55// LLFloaterObjectIMInfo
52class LLFloaterObjectIMInfo : public LLFloater, public LLFloaterSingleton<LLFloaterObjectIMInfo> 56class LLFloaterObjectIMInfo : public LLFloater, public LLFloaterSingleton<LLFloaterObjectIMInfo>
@@ -100,7 +104,10 @@ void LLFloaterObjectIMInfo::update(const LLUUID& object_id, const std::string& n
100{ 104{
101 // When talking to an old region we won't have a slurl. 105 // When talking to an old region we won't have a slurl.
102 // The object id isn't really the object id either but we don't use it so who cares. 106 // The object id isn't really the object id either but we don't use it so who cares.
103 bool have_slurl = !slurl.empty(); 107 //bool have_slurl = !slurl.empty();
108// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-04 (RLVa-1.0.0a) | Added: RLVa-0.2.0g
109 bool have_slurl = (!slurl.empty()) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC));
110// [/RLVa:KB]
104 childSetVisible("Unknown_Slurl",!have_slurl); 111 childSetVisible("Unknown_Slurl",!have_slurl);
105 childSetVisible("Slurl",have_slurl); 112 childSetVisible("Slurl",have_slurl);
106 113
@@ -108,7 +115,10 @@ void LLFloaterObjectIMInfo::update(const LLUUID& object_id, const std::string& n
108 childSetText("Slurl",slurl); 115 childSetText("Slurl",slurl);
109 childSetText("OwnerName",std::string("")); 116 childSetText("OwnerName",std::string(""));
110 117
111 bool my_object = (owner_id == gAgentID); 118// bool my_object = (owner_id == gAgentID);
119// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0g
120 bool my_object = (owner_id == gAgentID) || ((gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (gRlvHandler.isAgentNearby(owner_id)));
121// [/RLVa:KB]
112 childSetEnabled("Mute",!my_object); 122 childSetEnabled("Mute",!my_object);
113 123
114 mObjectID = object_id; 124 mObjectID = object_id;
@@ -139,7 +149,10 @@ void LLFloaterObjectIMInfo::onClickOwner(void* data)
139 { 149 {
140 LLFloaterGroupInfo::showFromUUID(self->mOwnerID); 150 LLFloaterGroupInfo::showFromUUID(self->mOwnerID);
141 } 151 }
142 else 152// else
153// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0g
154 else if ( (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) || (!gRlvHandler.isAgentNearby(self->mOwnerID)) )
155// [/RLVa:KB]
143 { 156 {
144 LLFloaterAvatarInfo::showFromObject(self->mOwnerID); 157 LLFloaterAvatarInfo::showFromObject(self->mOwnerID);
145 } 158 }
@@ -151,6 +164,13 @@ void LLFloaterObjectIMInfo::onClickMute(void* data)
151 LLFloaterObjectIMInfo* self = (LLFloaterObjectIMInfo*)data; 164 LLFloaterObjectIMInfo* self = (LLFloaterObjectIMInfo*)data;
152 165
153 LLMute::EType mute_type = (self->mOwnerIsGroup) ? LLMute::GROUP : LLMute::AGENT; 166 LLMute::EType mute_type = (self->mOwnerIsGroup) ? LLMute::GROUP : LLMute::AGENT;
167// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0g
168 if ( (LLMute::GROUP != mute_type) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (gRlvHandler.isAgentNearby(self->mOwnerID)) )
169 {
170 return;
171 }
172// [/RLVa:KB]
173
154 LLMute mute(self->mOwnerID, self->mOwnerName, mute_type); 174 LLMute mute(self->mOwnerID, self->mOwnerName, mute_type);
155 LLMuteList::getInstance()->add(mute); 175 LLMuteList::getInstance()->add(mute);
156 LLFloaterMute::showInstance(); 176 LLFloaterMute::showInstance();
@@ -167,6 +187,13 @@ void LLFloaterObjectIMInfo::nameCallback(const LLUUID& id, const std::string& fi
167 self->mOwnerName += " " + last; 187 self->mOwnerName += " " + last;
168 } 188 }
169 189
190// [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.0g
191 if ( (!is_group) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (gRlvHandler.isAgentNearby(id)) )
192 {
193 self->mOwnerName = gRlvHandler.getAnonym(self->mOwnerName);
194 }
195// [/RLVa:KB]
196
170 self->childSetText("OwnerName",self->mOwnerName); 197 self->childSetText("OwnerName",self->mOwnerName);
171} 198}
172 199