diff options
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-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 9e2cc3d..db05075 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -1423,7 +1423,7 @@ void init_debug_baked_texture_menu(LLMenuGL* menu) | |||
1423 | menu->createJumpKeys(); | 1423 | menu->createJumpKeys(); |
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g | 1426 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g |
1427 | void init_debug_rlva_menu(LLMenuGL* menu) | 1427 | void init_debug_rlva_menu(LLMenuGL* menu) |
1428 | { | 1428 | { |
1429 | // Debug options | 1429 | // Debug options |
@@ -1709,7 +1709,7 @@ class LLObjectEnableTouch : public view_listener_t | |||
1709 | { | 1709 | { |
1710 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); | 1710 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1711 | bool new_value = obj && obj->flagHandleTouch(); | 1711 | bool new_value = obj && obj->flagHandleTouch(); |
1712 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0f | 1712 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0f |
1713 | // TODO-RLVa: this code is rather redundant since we'll never get an active selection to show a pie menu for | 1713 | // TODO-RLVa: this code is rather redundant since we'll never get an active selection to show a pie menu for |
1714 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && ((!obj->isAttachment()) || (!obj->permYouOwner())) && | 1714 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_FARTOUCH)) && ((!obj->isAttachment()) || (!obj->permYouOwner())) && |
1715 | (dist_vec_squared(gAgent.getPositionAgent(), LLToolPie::getInstance()->getPick().mIntersection) > 1.5f * 1.5f) ) | 1715 | (dist_vec_squared(gAgent.getPositionAgent(), LLToolPie::getInstance()->getPick().mIntersection) > 1.5f * 1.5f) ) |
@@ -2440,13 +2440,6 @@ class LLObjectImportUpload : public view_listener_t | |||
2440 | 2440 | ||
2441 | bool handle_go_to_confirm() | 2441 | bool handle_go_to_confirm() |
2442 | { | 2442 | { |
2443 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) | ||
2444 | if ( (rlv_handler_t::isEnabled()) && (gAgent.forwardGrabbed()) && (gRlvHandler.hasLockedAttachment(RLV_LOCK_REMOVE)) ) | ||
2445 | { | ||
2446 | return true; | ||
2447 | } | ||
2448 | // [/RLVa:KB] | ||
2449 | |||
2450 | std::string action = gSavedSettings.getString("GoAction"); | 2443 | std::string action = gSavedSettings.getString("GoAction"); |
2451 | LLStringUtil::toLower(action); | 2444 | LLStringUtil::toLower(action); |
2452 | 2445 | ||
@@ -2469,7 +2462,7 @@ bool handle_go_to() | |||
2469 | { | 2462 | { |
2470 | return true; | 2463 | return true; |
2471 | } | 2464 | } |
2472 | // [/RLVa:KB] | 2465 | // [/RLVa:KB] |
2473 | 2466 | ||
2474 | handle_go_to_callback( LLSD(), LLSD(0) ); | 2467 | handle_go_to_callback( LLSD(), LLSD(0) ); |
2475 | 2468 | ||
@@ -2587,17 +2580,14 @@ class LLAvatarFreeze : public view_listener_t | |||
2587 | std::string fullname = avatar->getFullname(); | 2580 | std::string fullname = avatar->getFullname(); |
2588 | LLSD payload; | 2581 | LLSD payload; |
2589 | payload["avatar_id"] = avatar->getID(); | 2582 | payload["avatar_id"] = avatar->getID(); |
2590 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | ||
2591 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) | ||
2592 | { | ||
2593 | fullname = gRlvHandler.getAnonym(fullname); | ||
2594 | } | ||
2595 | // [/RLVa:KB] | ||
2596 | 2583 | ||
2597 | if (!fullname.empty()) | 2584 | if (!fullname.empty()) |
2598 | { | 2585 | { |
2599 | LLSD args; | 2586 | LLSD args; |
2600 | args["AVATAR_NAME"] = fullname; | 2587 | // args["AVATAR_NAME"] = fullname; |
2588 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) | ||
2589 | args["AVATAR_NAME"] = (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ? fullname : gRlvHandler.getAnonym(fullname); | ||
2590 | // [/RLVa:KB] | ||
2601 | LLNotifications::instance().add("FreezeAvatarFullname", | 2591 | LLNotifications::instance().add("FreezeAvatarFullname", |
2602 | args, | 2592 | args, |
2603 | payload, | 2593 | payload, |
@@ -2722,7 +2712,7 @@ class LLAvatarEject : public view_listener_t | |||
2722 | LLSD payload; | 2712 | LLSD payload; |
2723 | payload["avatar_id"] = avatar->getID(); | 2713 | payload["avatar_id"] = avatar->getID(); |
2724 | std::string fullname = avatar->getFullname(); | 2714 | std::string fullname = avatar->getFullname(); |
2725 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | 2715 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-08 (RLVa-1.0.0e) |
2726 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) | 2716 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!fullname.empty()) ) |
2727 | { | 2717 | { |
2728 | fullname = gRlvHandler.getAnonym(fullname); | 2718 | fullname = gRlvHandler.getAnonym(fullname); |
@@ -4068,10 +4058,10 @@ class LLObjectReturn : public view_listener_t | |||
4068 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4058 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4069 | { | 4059 | { |
4070 | if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) return true; | 4060 | if (LLSelectMgr::getInstance()->getSelection()->isEmpty()) return true; |
4071 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-05 (RLVa-1.0.0b) | 4061 | // [RLVa:KB] - Version: 1.23.4 | Checked: 2009-07-05 (RLVa-1.0.0b) |
4072 | if ( (rlv_handler_t::isEnabled()) && (!rlvCanDeleteOrReturn()) ) return true; | 4062 | if ( (rlv_handler_t::isEnabled()) && (!rlvCanDeleteOrReturn()) ) return true; |
4073 | // [/RLVa:KB] | 4063 | // [/RLVa:KB] |
4074 | 4064 | ||
4075 | mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); | 4065 | mObjectSelection = LLSelectMgr::getInstance()->getEditSelection(); |
4076 | 4066 | ||
4077 | LLNotifications::instance().add("ReturnToOwner", LLSD(), LLSD(), boost::bind(&LLObjectReturn::onReturnToOwner, this, _1, _2)); | 4067 | LLNotifications::instance().add("ReturnToOwner", LLSD(), LLSD(), boost::bind(&LLObjectReturn::onReturnToOwner, this, _1, _2)); |
@@ -4788,8 +4778,6 @@ class LLToolsEnableUnlink : public view_listener_t | |||
4788 | } | 4778 | } |
4789 | 4779 | ||
4790 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g | 4780 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g |
4791 | // The user might not be allowed to unlink this object due to RLV settings, | ||
4792 | // because it would unsit them if they are sitting on the object. | ||
4793 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && | 4781 | if ( (new_value) && (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && |
4794 | (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | 4782 | (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) |
4795 | { | 4783 | { |
@@ -4811,8 +4799,6 @@ class LLToolsUnlink : public view_listener_t | |||
4811 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4799 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4812 | { | 4800 | { |
4813 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g | 4801 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0g |
4814 | // The user might not be allowed to unlink this object due to RLV settings, | ||
4815 | // because it would unsit them if they are sitting on the object. | ||
4816 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | 4802 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) |
4817 | { | 4803 | { |
4818 | // Allow if the avie isn't sitting on any of the selected objects | 4804 | // Allow if the avie isn't sitting on any of the selected objects |
@@ -10831,6 +10817,7 @@ class LLAdvancedCheckMaxBuildConstraints : public view_listener_t | |||
10831 | /////////////// | 10817 | /////////////// |
10832 | 10818 | ||
10833 | 10819 | ||
10820 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
10834 | class RLVaMainToggle : public view_listener_t | 10821 | class RLVaMainToggle : public view_listener_t |
10835 | { | 10822 | { |
10836 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10823 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -10850,7 +10837,7 @@ class RLVaMainCheck : public view_listener_t | |||
10850 | return true; | 10837 | return true; |
10851 | } | 10838 | } |
10852 | }; | 10839 | }; |
10853 | 10840 | // [/RLVa:KB] | |
10854 | 10841 | ||
10855 | 10842 | ||
10856 | //////////////////// | 10843 | //////////////////// |
@@ -10858,6 +10845,7 @@ class RLVaMainCheck : public view_listener_t | |||
10858 | //////////////////// | 10845 | //////////////////// |
10859 | 10846 | ||
10860 | 10847 | ||
10848 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
10861 | class RLVaBehaviorsShow : public view_listener_t | 10849 | class RLVaBehaviorsShow : public view_listener_t |
10862 | { | 10850 | { |
10863 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10851 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -10866,7 +10854,7 @@ class RLVaBehaviorsShow : public view_listener_t | |||
10866 | return true; | 10854 | return true; |
10867 | } | 10855 | } |
10868 | }; | 10856 | }; |
10869 | 10857 | // [/RLVa:KB] | |
10870 | 10858 | ||
10871 | 10859 | ||
10872 | static void addMenu(view_listener_t *menu, const char *name) | 10860 | static void addMenu(view_listener_t *menu, const char *name) |
@@ -11283,8 +11271,10 @@ void initialize_menus() | |||
11283 | addMenu(new LLAdvancedCheckMaxBuildConstraints(), "Advanced.CheckMaxBuildConstraints"); | 11271 | addMenu(new LLAdvancedCheckMaxBuildConstraints(), "Advanced.CheckMaxBuildConstraints"); |
11284 | 11272 | ||
11285 | // RLVa | 11273 | // RLVa |
11274 | // [RLVa:KB] - Alternate: Imprudence-1.2.0 | ||
11286 | addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle"); | 11275 | addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle"); |
11287 | addMenu(new RLVaMainCheck(), "RLVa.Main.Enabled"); | 11276 | addMenu(new RLVaMainCheck(), "RLVa.Main.Enabled"); |
11288 | addMenu(new RLVaBehaviorsShow(), "RLVa.Behaviors.Show"); | 11277 | addMenu(new RLVaBehaviorsShow(), "RLVa.Behaviors.Show"); |
11278 | // [/RLVa:KB] | ||
11289 | 11279 | ||
11290 | } | 11280 | } |