diff options
author | McCabe Maxsted | 2010-08-21 11:58:28 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-26 11:23:54 -0700 |
commit | adacc52b8d6387595d0643b2dd9b4d7954830877 (patch) | |
tree | 83ca806efddcd795fbd909e1b8b1d054f5cc8ed3 /linden/indra/newview | |
parent | Updated windows version of openal-soft to 1.12.854 (diff) | |
download | meta-impy-adacc52b8d6387595d0643b2dd9b4d7954830877.zip meta-impy-adacc52b8d6387595d0643b2dd9b4d7954830877.tar.gz meta-impy-adacc52b8d6387595d0643b2dd9b4d7954830877.tar.bz2 meta-impy-adacc52b8d6387595d0643b2dd9b4d7954830877.tar.xz |
Added 'Teleport to Ground' option in the Advanced menu
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 19 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 3 |
2 files changed, 22 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index db05075..2484b94 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -8669,6 +8669,24 @@ class LLAdvancedCheckSit : public view_listener_t | |||
8669 | } | 8669 | } |
8670 | }; | 8670 | }; |
8671 | 8671 | ||
8672 | ////////////////// | ||
8673 | // TP TO GROUND // | ||
8674 | ////////////////// | ||
8675 | |||
8676 | class LLAdvancedTPToGround: public view_listener_t | ||
8677 | { | ||
8678 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8679 | { | ||
8680 | LLVector3 agentPos = gAgent.getPositionAgent(); | ||
8681 | U64 agentRegion = gAgent.getRegion()->getHandle(); | ||
8682 | LLVector3 targetPos(agentPos.mV[0],agentPos.mV[1],LLWorld::getInstance()->resolveLandHeightAgent(agentPos)); | ||
8683 | LLVector3d pos_global = from_region_handle(agentRegion); | ||
8684 | pos_global += LLVector3d((F64)targetPos.mV[0],(F64)targetPos.mV[1],(F64)targetPos.mV[2]); | ||
8685 | gAgent.teleportViaLocation(pos_global); | ||
8686 | return true; | ||
8687 | } | ||
8688 | }; | ||
8689 | |||
8672 | 8690 | ||
8673 | ///////////// | 8691 | ///////////// |
8674 | // PHANTOM // | 8692 | // PHANTOM // |
@@ -11112,6 +11130,7 @@ void initialize_menus() | |||
11112 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); | 11130 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); |
11113 | addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); | 11131 | addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); |
11114 | addMenu(new LLAdvancedCheckSit(), "Advanced.CheckSit"); | 11132 | addMenu(new LLAdvancedCheckSit(), "Advanced.CheckSit"); |
11133 | addMenu(new LLAdvancedTPToGround(), "Advanced.TPToGround"); | ||
11115 | addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom"); | 11134 | addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom"); |
11116 | addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom"); | 11135 | addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom"); |
11117 | addMenu(new LLAdvancedToggleAssetBrowser(),"Advanced.ToggleAssetBrowser"); | 11136 | addMenu(new LLAdvancedToggleAssetBrowser(),"Advanced.ToggleAssetBrowser"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 836c4dd..e69f3f9 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -969,6 +969,9 @@ | |||
969 | <on_click function="Advanced.ToggleSit" userdata="" /> | 969 | <on_click function="Advanced.ToggleSit" userdata="" /> |
970 | <on_Check function="Advanced.CheckSit" userdata="" /> | 970 | <on_Check function="Advanced.CheckSit" userdata="" /> |
971 | </menu_item_call> | 971 | </menu_item_call> |
972 | <menu_item_call name="Teleport to Ground" label="Teleport to Ground"> | ||
973 | <on_click function="Advanced.TPToGround" userdata="" /> | ||
974 | </menu_item_call> | ||
972 | <menu_item_check label="Phantom Avatar" name="Phantom" | 975 | <menu_item_check label="Phantom Avatar" name="Phantom" |
973 | shortcut="control|alt|p"> | 976 | shortcut="control|alt|p"> |
974 | <on_click function="Advanced.TogglePhantom" userdata="" /> | 977 | <on_click function="Advanced.TogglePhantom" userdata="" /> |