diff options
author | McCabe Maxsted | 2009-11-09 16:29:54 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-11-09 16:29:54 -0700 |
commit | 730198ffe1db1063d274bbdfc5e9f565d2961330 (patch) | |
tree | 57a323c4804504a486b92adef25651694580f383 /linden/indra/newview/llviewermenu.cpp | |
parent | Removed unused menu entries (still merging 1.23) (diff) | |
download | meta-impy-730198ffe1db1063d274bbdfc5e9f565d2961330.zip meta-impy-730198ffe1db1063d274bbdfc5e9f565d2961330.tar.gz meta-impy-730198ffe1db1063d274bbdfc5e9f565d2961330.tar.bz2 meta-impy-730198ffe1db1063d274bbdfc5e9f565d2961330.tar.xz |
Updated several menu entries to 1.23
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index a0df6b5..0c92141 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -2473,12 +2473,10 @@ bool handle_go_to_callback(const LLSD& notification, const LLSD& response) | |||
2473 | S32 option = LLNotification::getSelectedOption(notification, response); | 2473 | S32 option = LLNotification::getSelectedOption(notification, response); |
2474 | if (option == 0) | 2474 | if (option == 0) |
2475 | { | 2475 | { |
2476 | LLToolPie* pie = LLToolPie::getInstance(); | ||
2477 | |||
2478 | // JAMESDEBUG try simulator autopilot | 2476 | // JAMESDEBUG try simulator autopilot |
2479 | std::vector<std::string> strings; | 2477 | std::vector<std::string> strings; |
2480 | std::string val; | 2478 | std::string val; |
2481 | LLVector3d pos = pie->getPick().mPosGlobal; | 2479 | LLVector3d pos = LLToolPie::getInstance()->getPick().mPosGlobal; |
2482 | 2480 | ||
2483 | std::string action = gSavedSettings.getString("GoAction"); | 2481 | std::string action = gSavedSettings.getString("GoAction"); |
2484 | LLStringUtil::toLower(action); | 2482 | LLStringUtil::toLower(action); |
@@ -2522,6 +2520,7 @@ bool handle_go_to_callback(const LLSD& notification, const LLSD& response) | |||
2522 | llwarns << "Unhandled GoAction setting: " << action << llendl; | 2520 | llwarns << "Unhandled GoAction setting: " << action << llendl; |
2523 | } | 2521 | } |
2524 | } | 2522 | } |
2523 | return false; | ||
2525 | } | 2524 | } |
2526 | 2525 | ||
2527 | class LLGoToObject : public view_listener_t | 2526 | class LLGoToObject : public view_listener_t |
@@ -6727,8 +6726,7 @@ class LLToolsSetBulkPerms : public view_listener_t | |||
6727 | { | 6726 | { |
6728 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6727 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
6729 | { | 6728 | { |
6730 | LLFloaterBulkPermission* queue = NULL; | 6729 | LLFloaterBulkPermission::showInstance(); |
6731 | queue = LLFloaterBulkPermission::create(); | ||
6732 | return true; | 6730 | return true; |
6733 | } | 6731 | } |
6734 | }; | 6732 | }; |
@@ -9590,23 +9588,23 @@ class LLAdvancedGrabBakedTexture : public view_listener_t | |||
9590 | std::string texture_type = userdata.asString(); | 9588 | std::string texture_type = userdata.asString(); |
9591 | if ("eyes" == texture_type) | 9589 | if ("eyes" == texture_type) |
9592 | { | 9590 | { |
9593 | handle_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | 9591 | handle_grab_texture( (void*)TEX_EYES_BAKED ); |
9594 | } | 9592 | } |
9595 | else if ("head" == texture_type) | 9593 | else if ("head" == texture_type) |
9596 | { | 9594 | { |
9597 | handle_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | 9595 | handle_grab_texture( (void*)TEX_HEAD_BAKED ); |
9598 | } | 9596 | } |
9599 | else if ("upper" == texture_type) | 9597 | else if ("upper" == texture_type) |
9600 | { | 9598 | { |
9601 | handle_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | 9599 | handle_grab_texture( (void*)TEX_UPPER_BAKED ); |
9602 | } | 9600 | } |
9603 | else if ("lower" == texture_type) | 9601 | else if ("lower" == texture_type) |
9604 | { | 9602 | { |
9605 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | 9603 | handle_grab_texture( (void*)TEX_SKIRT_BAKED ); |
9606 | } | 9604 | } |
9607 | else if ("skirt" == texture_type) | 9605 | else if ("skirt" == texture_type) |
9608 | { | 9606 | { |
9609 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | 9607 | handle_grab_texture( (void*)TEX_SKIRT_BAKED ); |
9610 | } | 9608 | } |
9611 | 9609 | ||
9612 | return true; | 9610 | return true; |
@@ -9622,23 +9620,23 @@ class LLAdvancedEnableGrabBakedTexture : public view_listener_t | |||
9622 | 9620 | ||
9623 | if ("iris" == texture_type) | 9621 | if ("iris" == texture_type) |
9624 | { | 9622 | { |
9625 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | 9623 | new_value = enable_grab_texture( (void*)TEX_EYES_BAKED ); |
9626 | } | 9624 | } |
9627 | else if ("head" == texture_type) | 9625 | else if ("head" == texture_type) |
9628 | { | 9626 | { |
9629 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | 9627 | new_value = enable_grab_texture( (void*)TEX_HEAD_BAKED ); |
9630 | } | 9628 | } |
9631 | else if ("upper" == texture_type) | 9629 | else if ("upper" == texture_type) |
9632 | { | 9630 | { |
9633 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | 9631 | new_value = enable_grab_texture( (void*)TEX_UPPER_BAKED ); |
9634 | } | 9632 | } |
9635 | else if ("lower" == texture_type) | 9633 | else if ("lower" == texture_type) |
9636 | { | 9634 | { |
9637 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_LOWER_BAKED ); | 9635 | new_value = enable_grab_texture( (void*)TEX_LOWER_BAKED ); |
9638 | } | 9636 | } |
9639 | else if ("skirt" == texture_type) | 9637 | else if ("skirt" == texture_type) |
9640 | { | 9638 | { |
9641 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | 9639 | new_value = enable_grab_texture( (void*)TEX_SKIRT_BAKED ); |
9642 | } | 9640 | } |
9643 | 9641 | ||
9644 | std::string control_name = userdata["control"].asString(); | 9642 | std::string control_name = userdata["control"].asString(); |
@@ -10069,7 +10067,7 @@ class LLAdvancedToggleShowCollisionSkeleton : public view_listener_t | |||
10069 | { | 10067 | { |
10070 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10068 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10071 | { | 10069 | { |
10072 | LLVOAvatar::sShowCollisionVolumes = !(LLVOAvatar::sShowCollisionVolumes); | 10070 | LLPipeline::toggleRenderDebugControl((void*)LLPipeline::RENDER_DEBUG_AVATAR_VOLUME); |
10073 | return true; | 10071 | return true; |
10074 | } | 10072 | } |
10075 | }; | 10073 | }; |
@@ -10078,7 +10076,7 @@ class LLAdvancedCheckShowCollisionSkeleton : public view_listener_t | |||
10078 | { | 10076 | { |
10079 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10077 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10080 | { | 10078 | { |
10081 | bool new_value = LLVOAvatar::sShowCollisionVolumes; | 10079 | bool new_value = gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_AVATAR_VOLUME); |
10082 | std::string control_name = userdata["control"].asString(); | 10080 | std::string control_name = userdata["control"].asString(); |
10083 | gMenuHolder->findControl(control_name)->setValue(new_value); | 10081 | gMenuHolder->findControl(control_name)->setValue(new_value); |
10084 | return true; | 10082 | return true; |
@@ -10096,7 +10094,7 @@ class LLAdvancedToggleDisplayAgentTarget : public view_listener_t | |||
10096 | { | 10094 | { |
10097 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10095 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10098 | { | 10096 | { |
10099 | LLAgent::sDebugDisplayTarget = !(LLAgent::sDebugDisplayTarget); | 10097 | LLPipeline::toggleRenderDebugControl((void*)LLPipeline::RENDER_DEBUG_AGENT_TARGET); |
10100 | return true; | 10098 | return true; |
10101 | } | 10099 | } |
10102 | }; | 10100 | }; |
@@ -10105,7 +10103,7 @@ class LLAdvancedCheckDisplayAgentTarget : public view_listener_t | |||
10105 | { | 10103 | { |
10106 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10104 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10107 | { | 10105 | { |
10108 | bool new_value = LLAgent::sDebugDisplayTarget; | 10106 | bool new_value = gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_AGENT_TARGET); |
10109 | std::string control_name = userdata["control"].asString(); | 10107 | std::string control_name = userdata["control"].asString(); |
10110 | gMenuHolder->findControl(control_name)->setValue(new_value); | 10108 | gMenuHolder->findControl(control_name)->setValue(new_value); |
10111 | return true; | 10109 | return true; |
@@ -10123,7 +10121,7 @@ class LLAdvancedToggleDebugAvatarRotation : public view_listener_t | |||
10123 | { | 10121 | { |
10124 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10122 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10125 | { | 10123 | { |
10126 | gDebugAvatarRotation = !(gDebugAvatarRotation); | 10124 | LLVOAvatar::sDebugAvatarRotation = !(LLVOAvatar::sDebugAvatarRotation); |
10127 | return true; | 10125 | return true; |
10128 | } | 10126 | } |
10129 | }; | 10127 | }; |
@@ -10132,7 +10130,7 @@ class LLAdvancedCheckDebugAvatarRotation : public view_listener_t | |||
10132 | { | 10130 | { |
10133 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10131 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10134 | { | 10132 | { |
10135 | bool new_value = gDebugAvatarRotation; | 10133 | bool new_value = LLVOAvatar::sDebugAvatarRotation; |
10136 | std::string control_name = userdata["control"].asString(); | 10134 | std::string control_name = userdata["control"].asString(); |
10137 | gMenuHolder->findControl(control_name)->setValue(new_value); | 10135 | gMenuHolder->findControl(control_name)->setValue(new_value); |
10138 | return true; | 10136 | return true; |