diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 594694d..c5ce236 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -1424,7 +1424,7 @@ void init_debug_baked_texture_menu(LLMenuGL* menu) | |||
1424 | menu->createJumpKeys(); | 1424 | menu->createJumpKeys(); |
1425 | } | 1425 | } |
1426 | 1426 | ||
1427 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g | 1427 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g |
1428 | void init_debug_rlva_menu(LLMenuGL* menu) | 1428 | void init_debug_rlva_menu(LLMenuGL* menu) |
1429 | { | 1429 | { |
1430 | // Debug options | 1430 | // Debug options |
@@ -1710,7 +1710,7 @@ class LLObjectEnableTouch : public view_listener_t | |||
1710 | { | 1710 | { |
1711 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); | 1711 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1712 | bool new_value = obj && obj->flagHandleTouch(); | 1712 | bool new_value = obj && obj->flagHandleTouch(); |
1713 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0f | 1713 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0f |
1714 | // TODO-RLVa: this code is rather redundant since we'll never get an active selection to show a pie menu for | 1714 | // TODO-RLVa: this code is rather redundant since we'll never get an active selection to show a pie menu for |
1715 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && ((!obj->isAttachment()) || (!obj->permYouOwner())) && | 1715 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && ((!obj->isAttachment()) || (!obj->permYouOwner())) && |
1716 | (dist_vec_squared(gAgent.getPositionAgent(), LLToolPie::getInstance()->getPick().mIntersection) > 1.5f * 1.5f) ) | 1716 | (dist_vec_squared(gAgent.getPositionAgent(), LLToolPie::getInstance()->getPick().mIntersection) > 1.5f * 1.5f) ) |
@@ -2525,13 +2525,6 @@ class LLObjectImportUpload : public view_listener_t | |||
2525 | 2525 | ||
2526 | bool handle_go_to_confirm() | 2526 | bool handle_go_to_confirm() |
2527 | { | 2527 | { |
2528 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) | ||
2529 | if ( (rlv_handler_t::isEnabled()) && (gAgent.forwardGrabbed()) && (gRlvHandler.hasLockedAttachment(RLV_LOCK_REMOVE)) ) | ||
2530 | { | ||
2531 | return true; | ||
2532 | } | ||
2533 | // [/RLVa:KB] | ||
2534 | |||
2535 | std::string action = gSavedSettings.getString("GoAction"); | 2528 | std::string action = gSavedSettings.getString("GoAction"); |
2536 | LLStringUtil::toLower(action); | 2529 | LLStringUtil::toLower(action); |
2537 | 2530 | ||
@@ -2554,7 +2547,7 @@ bool handle_go_to() | |||
2554 | { | 2547 | { |
2555 | return true; | 2548 | return true; |
2556 | } | 2549 | } |
2557 | // [/RLVa:KB] | 2550 | // [/RLVa:KB] |
2558 | 2551 | ||
2559 | handle_go_to_callback( LLSD(), LLSD(0) ); | 2552 | handle_go_to_callback( LLSD(), LLSD(0) ); |
2560 | 2553 | ||
@@ -2672,17 +2665,14 @@ class LLAvatarFreeze : public view_listener_t | |||
2672 | std::string fullname = avatar->getFullname(); | 2665 | std::string fullname = avatar->getFullname(); |
2673 | LLSD payload; | 2666 | LLSD payload; |
2674 | payload["avatar_id"] = avatar->getID(); | 2667 | payload["avatar_id"] = avatar->getID(); |
2675 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | ||
2676 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) | ||
2677 | { | ||
2678 | fullname = gRlvHandler.getAnonym(fullname); | ||
2679 | } | ||
2680 | // [/RLVa:KB] | ||
2681 | 2668 | ||
2682 | if (!fullname.empty()) | 2669 | if (!fullname.empty()) |
2683 | { | 2670 | { |
2684 | LLSD args; | 2671 | LLSD args; |
2685 | args["AVATAR_NAME"] = fullname; | 2672 | // args["AVATAR_NAME"] = fullname; |
2673 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | ||
2674 | args["AVATAR_NAME"] = (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname); | ||
2675 | // [/RLVa:KB] | ||
2686 | LLNotifications::instance().add("FreezeAvatarFullname", | 2676 | LLNotifications::instance().add("FreezeAvatarFullname", |
2687 | args, | 2677 | args, |
2688 | payload, | 2678 | payload, |
@@ -2807,7 +2797,7 @@ class LLAvatarEject : public view_listener_t | |||
2807 | LLSD payload; | 2797 | LLSD payload; |
2808 | payload["avatar_id"] = avatar->getID(); | 2798 | payload["avatar_id"] = avatar->getID(); |
2809 | std::string fullname = avatar->getFullname(); | 2799 | std::string fullname = avatar->getFullname(); |
2810 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | 2800 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) |
2811 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) | 2801 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) |
2812 | { | 2802 | { |
2813 | fullname = gRlvHandler.getAnonym(fullname); | 2803 | fullname = gRlvHandler.getAnonym(fullname); |
@@ -4153,10 +4143,10 @@ class LLObjectReturn : public view_listener_t | |||
4153 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4143 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4154 | { | 4144 | { |
4155 | if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) return true; | 4145 | if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) return true; |
4156 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-05 (RLVa-1.0.0b) | 4146 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-05 (RLVa-1.0.0b) |
4157 | if ( (rlv_handler_t::isEnabled()) && (!rlvCanDeleteOrReturn()) ) return true; | 4147 | if ( (rlv_handler_t::isEnabled()) && (!rlvCanDeleteOrReturn()) ) return true; |
4158 | // [/RLVa:KB] | 4148 | // [/RLVa:KB] |
4159 | 4149 | ||
4160 | mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); | 4150 | mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); |
4161 | 4151 | ||
4162 | LLNotifications::instance().add("ReturnToOwner", LLSD(), LLSD(), boost::bind(&LLObjectReturn::onReturnToOwner, this, _1, _2)); | 4152 | LLNotifications::instance().add("ReturnToOwner", LLSD(), LLSD(), boost::bind(&LLObjectReturn::onReturnToOwner, this, _1, _2)); |
@@ -4873,8 +4863,6 @@ class LLToolsEnableUnlink : public view_listener_t | |||
4873 | } | 4863 | } |
4874 | 4864 | ||
4875 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g | 4865 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g |
4876 | // The user might not be allowed to unlink this object due to RLV settings, | ||
4877 | // because it would unsit them if they are sitting on the object. | ||
4878 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && | 4866 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && |
4879 | (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | 4867 | (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) |
4880 | { | 4868 | { |
@@ -4896,8 +4884,6 @@ class LLToolsUnlink : public view_listener_t | |||
4896 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4884 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4897 | { | 4885 | { |
4898 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g | 4886 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g |
4899 | // The user might not be allowed to unlink this object due to RLV settings, | ||
4900 | // because it would unsit them if they are sitting on the object. | ||
4901 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | 4887 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) |
4902 | { | 4888 | { |
4903 | // Allow if the avie isn't sitting on any of the selected objects | 4889 | // Allow if the avie isn't sitting on any of the selected objects |
@@ -10916,6 +10902,7 @@ class LLAdvancedCheckMaxBuildConstraints : public view_listener_t | |||
10916 | /////////////// | 10902 | /////////////// |
10917 | 10903 | ||
10918 | 10904 | ||
10905 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
10919 | class RLVaMainToggle : public view_listener_t | 10906 | class RLVaMainToggle : public view_listener_t |
10920 | { | 10907 | { |
10921 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10908 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -10935,7 +10922,7 @@ class RLVaMainCheck : public view_listener_t | |||
10935 | return true; | 10922 | return true; |
10936 | } | 10923 | } |
10937 | }; | 10924 | }; |
10938 | 10925 | // [/RLVa:KB] | |
10939 | 10926 | ||
10940 | 10927 | ||
10941 | //////////////////// | 10928 | //////////////////// |
@@ -10943,6 +10930,7 @@ class RLVaMainCheck : public view_listener_t | |||
10943 | //////////////////// | 10930 | //////////////////// |
10944 | 10931 | ||
10945 | 10932 | ||
10933 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
10946 | class RLVaBehaviorsShow : public view_listener_t | 10934 | class RLVaBehaviorsShow : public view_listener_t |
10947 | { | 10935 | { |
10948 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10936 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -10951,7 +10939,7 @@ class RLVaBehaviorsShow : public view_listener_t | |||
10951 | return true; | 10939 | return true; |
10952 | } | 10940 | } |
10953 | }; | 10941 | }; |
10954 | 10942 | // [/RLVa:KB] | |
10955 | 10943 | ||
10956 | 10944 | ||
10957 | static void addMenu(view_listener_t *menu, const char *name) | 10945 | static void addMenu(view_listener_t *menu, const char *name) |
@@ -11369,8 +11357,10 @@ void initialize_menus() | |||
11369 | addMenu(new LLAdvancedCheckMaxBuildConstraints(), "Advanced.CheckMaxBuildConstraints"); | 11357 | addMenu(new LLAdvancedCheckMaxBuildConstraints(), "Advanced.CheckMaxBuildConstraints"); |
11370 | 11358 | ||
11371 | // RLVa | 11359 | // RLVa |
11360 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
11372 | addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle"); | 11361 | addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle"); |
11373 | addMenu(new RLVaMainCheck(), "RLVa.Main.Enabled"); | 11362 | addMenu(new RLVaMainCheck(), "RLVa.Main.Enabled"); |
11374 | addMenu(new RLVaBehaviorsShow(), "RLVa.Behaviors.Show"); | 11363 | addMenu(new RLVaBehaviorsShow(), "RLVa.Behaviors.Show"); |
11364 | // [/RLVa:KB] | ||
11375 | 11365 | ||
11376 | } | 11366 | } |