summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 07b6a9e642..0ff5181cc5 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -844,6 +844,25 @@ class LLAdvancedCheckFeature : public view_listener_t
}
};
+void LLDestinationGuideToggle()
+{
+ LLView* destination_guide = gViewerWindow->getRootView()->getChildView("destination_guide_container");
+ if ( destination_guide )
+ {
+ if ( destination_guide->getVisible() )
+ {
+ destination_guide->setVisible( FALSE );
+ }
+ else
+ {
+ destination_guide->setVisible( true );
+ }
+ }
+ else
+ {
+ llwarns << "ERROR: unable to find destination guide container" << llendl;
+ }
+};
//////////////////
// INFO DISPLAY //
@@ -8275,4 +8294,6 @@ void initialize_menus()
view_listener_t::addMenu(new LLEditableSelectedMono(), "EditableSelectedMono");
view_listener_t::addMenu(new LLToggleUIHints(), "ToggleUIHints");
+
+ commit.add("DestinationGuide.toggle", boost::bind(&LLDestinationGuideToggle));
}