diff options
author | Jacek Antonelli | 2009-09-04 01:56:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-04 03:39:51 -0500 |
commit | 89a510de10c48ebcf82b98a962e4bf66477dcc93 (patch) | |
tree | d30f79f433badffe36a67fc155e70a0e29dd2dc4 /linden/indra/newview/llfloaterreporter.cpp | |
parent | Backported 1.23 fix for animation joint assertion crash. (diff) | |
download | meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.zip meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.gz meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.bz2 meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.xz |
Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch.
Made a few non-functional changes to help it apply.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterreporter.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterreporter.cpp b/linden/indra/newview/llfloaterreporter.cpp index d2fcf01..0d3b101 100644 --- a/linden/indra/newview/llfloaterreporter.cpp +++ b/linden/indra/newview/llfloaterreporter.cpp | |||
@@ -132,6 +132,23 @@ LLFloaterReporter::LLFloaterReporter( | |||
132 | 132 | ||
133 | childSetText("abuse_location_edit", gAgent.getSLURL() ); | 133 | childSetText("abuse_location_edit", gAgent.getSLURL() ); |
134 | 134 | ||
135 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-1.0.0a | ||
136 | if (rlv_handler_t::isEnabled()) | ||
137 | { | ||
138 | // Can't filter these since they get sent as part of the report so just hide them instead | ||
139 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
140 | { | ||
141 | childSetVisible("abuse_location_edit", false); | ||
142 | childSetVisible("pos_field", false); | ||
143 | } | ||
144 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
145 | { | ||
146 | childSetVisible("owner_name", false); | ||
147 | childSetVisible("abuser_name_edit", false); | ||
148 | } | ||
149 | } | ||
150 | // [/RLVa:KB] | ||
151 | |||
135 | LLButton* pick_btn = getChild<LLButton>("pick_btn"); | 152 | LLButton* pick_btn = getChild<LLButton>("pick_btn"); |
136 | if (pick_btn) | 153 | if (pick_btn) |
137 | { | 154 | { |
@@ -299,6 +316,12 @@ void LLFloaterReporter::getObjectInfo(const LLUUID& object_id) | |||
299 | if (regionp) | 316 | if (regionp) |
300 | { | 317 | { |
301 | childSetText("sim_field", regionp->getName()); | 318 | childSetText("sim_field", regionp->getName()); |
319 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
320 | if ( (rlv_handler_t::isEnabled()) && (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ) | ||
321 | { | ||
322 | childSetText("sim_field", rlv_handler_t::cstrHiddenRegion); | ||
323 | } | ||
324 | // [/RLVa:KB] | ||
302 | LLVector3d global_pos; | 325 | LLVector3d global_pos; |
303 | global_pos.setVec(objectp->getPositionRegion()); | 326 | global_pos.setVec(objectp->getPositionRegion()); |
304 | setPosBox(global_pos); | 327 | setPosBox(global_pos); |
@@ -322,6 +345,12 @@ void LLFloaterReporter::getObjectInfo(const LLUUID& object_id) | |||
322 | object_owner.append("Unknown"); | 345 | object_owner.append("Unknown"); |
323 | } | 346 | } |
324 | childSetText("object_name", object_owner); | 347 | childSetText("object_name", object_owner); |
348 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RVLa-1.0.0e | ||
349 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
350 | { | ||
351 | childSetVisible("object_name", false); // Hide the object name if the picked object represents an avataz | ||
352 | } | ||
353 | // [/RLVa:KB] | ||
325 | childSetText("owner_name", object_owner); | 354 | childSetText("owner_name", object_owner); |
326 | childSetText("abuser_name_edit", object_owner); | 355 | childSetText("abuser_name_edit", object_owner); |
327 | mAbuserID = object_id; | 356 | mAbuserID = object_id; |
@@ -594,6 +623,12 @@ LLFloaterReporter* LLFloaterReporter::createNewBugReporter() | |||
594 | void LLFloaterReporter::setPickedObjectProperties(const std::string& object_name, const std::string& owner_name, const LLUUID owner_id) | 623 | void LLFloaterReporter::setPickedObjectProperties(const std::string& object_name, const std::string& owner_name, const LLUUID owner_id) |
595 | { | 624 | { |
596 | childSetText("object_name", object_name); | 625 | childSetText("object_name", object_name); |
626 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RVLa-1.0.0e | ||
627 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) | ||
628 | { | ||
629 | childSetVisible("object_name", true); // Show the object name if the picked object is actually an object | ||
630 | } | ||
631 | // [/RLVa:KB] | ||
597 | childSetText("owner_name", owner_name); | 632 | childSetText("owner_name", owner_name); |
598 | childSetText("abuser_name_edit", owner_name); | 633 | childSetText("abuser_name_edit", owner_name); |
599 | mAbuserID = owner_id; | 634 | mAbuserID = owner_id; |