aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 7c556df..838f230 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -4550,6 +4550,25 @@ void print_agent_nvpairs(void*)
4550 llinfos << "Camera at " << gAgent.getCameraPositionGlobal() << llendl; 4550 llinfos << "Camera at " << gAgent.getCameraPositionGlobal() << llendl;
4551} 4551}
4552 4552
4553class LLViewToggleAdvanced : public view_listener_t
4554{
4555 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
4556 {
4557 toggle_debug_menus(NULL);
4558 return true;
4559 }
4560};
4561
4562class LLViewCheckAdvanced : public view_listener_t
4563{
4564 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
4565 {
4566 BOOL new_value = gSavedSettings.getBOOL("UseDebugMenus");
4567 gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
4568 return true;
4569 }
4570};
4571
4553void show_debug_menus() 4572void show_debug_menus()
4554{ 4573{
4555 // this can get called at login screen where there is no menu so only toggle it if one exists 4574 // this can get called at login screen where there is no menu so only toggle it if one exists
@@ -9509,6 +9528,8 @@ void initialize_menus()
9509 addMenu(new LLViewZoomIn(), "View.ZoomIn"); 9528 addMenu(new LLViewZoomIn(), "View.ZoomIn");
9510 addMenu(new LLViewZoomDefault(), "View.ZoomDefault"); 9529 addMenu(new LLViewZoomDefault(), "View.ZoomDefault");
9511 addMenu(new LLViewFullscreen(), "View.Fullscreen"); 9530 addMenu(new LLViewFullscreen(), "View.Fullscreen");
9531 addMenu(new LLViewToggleAdvanced(), "View.ToggleAdvanced");
9532
9512 9533
9513 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook"); 9534 addMenu(new LLViewEnableMouselook(), "View.EnableMouselook");
9514 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter"); 9535 addMenu(new LLViewEnableLastChatter(), "View.EnableLastChatter");
@@ -9519,6 +9540,7 @@ void initialize_menus()
9519 addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent"); 9540 addMenu(new LLViewCheckHighlightTransparent(), "View.CheckHighlightTransparent");
9520 addMenu(new LLViewCheckRenderType(), "View.CheckRenderType"); 9541 addMenu(new LLViewCheckRenderType(), "View.CheckRenderType");
9521 addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments"); 9542 addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments");
9543 addMenu(new LLViewCheckAdvanced(), "View.CheckAdvanced");
9522 9544
9523 // World menu 9545 // World menu
9524 addMenu(new LLWorldChat(), "World.Chat"); 9546 addMenu(new LLWorldChat(), "World.Chat");