aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-01-12 11:37:41 -0700
committerMcCabe Maxsted2009-01-12 11:37:41 -0700
commitd603cd5bb504be17f3fdd81b4b746e23c72b700d (patch)
tree5b3bc2010c0527d0fdbc386d5631063b581de90b /linden/indra/newview/llviewermenu.cpp
parentFixed bottom HUD arrow (from VWR-5518, possible memory leak in linden code) (diff)
parentMoved common options out of Advanced (diff)
downloadmeta-impy-d603cd5bb504be17f3fdd81b4b746e23c72b700d.zip
meta-impy-d603cd5bb504be17f3fdd81b4b746e23c72b700d.tar.gz
meta-impy-d603cd5bb504be17f3fdd81b4b746e23c72b700d.tar.bz2
meta-impy-d603cd5bb504be17f3fdd81b4b746e23c72b700d.tar.xz
Moved common options out of Advanced
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp32
1 files changed, 2 insertions, 30 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 1f3b14d..0ea92f1 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -788,12 +788,6 @@ void init_client_menu(LLMenuGL* menu)
788 menu->appendMenu(sub_menu); 788 menu->appendMenu(sub_menu);
789 789
790 menu->appendSeparator(); 790 menu->appendSeparator();
791
792 menu->append(new LLMenuItemCheckGL( "High-res Snapshot",
793 &menu_toggle_control,
794 NULL,
795 &menu_check_control,
796 (void*)"HighResSnapshot"));
797 791
798 menu->append(new LLMenuItemCheckGL( "Quiet Snapshots to Disk", 792 menu->append(new LLMenuItemCheckGL( "Quiet Snapshots to Disk",
799 &menu_toggle_control, 793 &menu_toggle_control,
@@ -801,12 +795,6 @@ void init_client_menu(LLMenuGL* menu)
801 &menu_check_control, 795 &menu_check_control,
802 (void*)"QuietSnapshotsToDisk")); 796 (void*)"QuietSnapshotsToDisk"));
803 797
804 menu->append(new LLMenuItemCheckGL( "Compress Snapshots to Disk",
805 &menu_toggle_control,
806 NULL,
807 &menu_check_control,
808 (void*)"CompressSnapshotsToDisk"));
809
810 menu->append(new LLMenuItemCheckGL("Show Mouselook Crosshairs", 798 menu->append(new LLMenuItemCheckGL("Show Mouselook Crosshairs",
811 &menu_toggle_control, 799 &menu_toggle_control,
812 NULL, 800 NULL,
@@ -925,12 +913,6 @@ void init_client_menu(LLMenuGL* menu)
925 &menu_check_control, 913 &menu_check_control,
926 (void*)"LimitSelectDistance")); 914 (void*)"LimitSelectDistance"));
927 915
928 menu->append(new LLMenuItemCheckGL("Disable Camera Constraints",
929 &menu_toggle_control,
930 NULL,
931 &menu_check_control,
932 (void*)"DisableCameraConstraints"));
933
934 menu->append(new LLMenuItemCheckGL("Mouse Smoothing", 916 menu->append(new LLMenuItemCheckGL("Mouse Smoothing",
935 &menu_toggle_control, 917 &menu_toggle_control,
936 NULL, 918 NULL,
@@ -1381,7 +1363,7 @@ void init_debug_avatar_menu(LLMenuGL* menu)
1381 menu->append(new LLMenuItemToggleGL( "Display Agent Target", &LLAgent::sDebugDisplayTarget)); 1363 menu->append(new LLMenuItemToggleGL( "Display Agent Target", &LLAgent::sDebugDisplayTarget));
1382 menu->append(new LLMenuItemToggleGL( "Debug Rotation", &gDebugAvatarRotation)); 1364 menu->append(new LLMenuItemToggleGL( "Debug Rotation", &gDebugAvatarRotation));
1383 menu->append(new LLMenuItemCallGL("Dump Attachments", handle_dump_attachments)); 1365 menu->append(new LLMenuItemCallGL("Dump Attachments", handle_dump_attachments));
1384 menu->append(new LLMenuItemCallGL("Rebake Textures", handle_rebake_textures, NULL, NULL, 'R', MASK_ALT | MASK_CONTROL )); 1366 menu->append(new LLMenuItemCallGL("Refresh Appearance", handle_rebake_textures, NULL, NULL, 'R', MASK_ALT | MASK_CONTROL ));
1385#ifndef LL_RELEASE_FOR_DOWNLOAD 1367#ifndef LL_RELEASE_FOR_DOWNLOAD
1386 menu->append(new LLMenuItemCallGL("Debug Avatar Textures", handle_debug_avatar_textures, NULL, NULL, 'A', MASK_SHIFT|MASK_CONTROL|MASK_ALT)); 1368 menu->append(new LLMenuItemCallGL("Debug Avatar Textures", handle_debug_avatar_textures, NULL, NULL, 'A', MASK_SHIFT|MASK_CONTROL|MASK_ALT));
1387 menu->append(new LLMenuItemCallGL("Dump Local Textures", handle_dump_avatar_local_textures, NULL, NULL, 'M', MASK_SHIFT|MASK_ALT )); 1369 menu->append(new LLMenuItemCallGL("Dump Local Textures", handle_dump_avatar_local_textures, NULL, NULL, 'M', MASK_SHIFT|MASK_ALT ));
@@ -6268,11 +6250,6 @@ BOOL menu_ui_enabled(void *user_data)
6268void menu_toggle_control( void* user_data ) 6250void menu_toggle_control( void* user_data )
6269{ 6251{
6270 BOOL checked = gSavedSettings.getBOOL( static_cast<char*>(user_data) ); 6252 BOOL checked = gSavedSettings.getBOOL( static_cast<char*>(user_data) );
6271 if (std::string(static_cast<char*>(user_data)) == "HighResSnapshot" && !checked)
6272 {
6273 // High Res Snapshot active, must uncheck RenderUIInSnapshot
6274 gSavedSettings.setBOOL( "RenderUIInSnapshot", FALSE );
6275 }
6276 gSavedSettings.setBOOL( static_cast<char*>(user_data), !checked ); 6253 gSavedSettings.setBOOL( static_cast<char*>(user_data), !checked );
6277} 6254}
6278 6255
@@ -6284,11 +6261,6 @@ class LLToggleControl : public view_listener_t
6284 { 6261 {
6285 std::string control_name = userdata.asString(); 6262 std::string control_name = userdata.asString();
6286 BOOL checked = gSavedSettings.getBOOL( control_name ); 6263 BOOL checked = gSavedSettings.getBOOL( control_name );
6287 if (control_name == "HighResSnapshot" && !checked)
6288 {
6289 // High Res Snapshot active, must uncheck RenderUIInSnapshot
6290 gSavedSettings.setBOOL( "RenderUIInSnapshot", FALSE );
6291 }
6292 gSavedSettings.setBOOL( control_name, !checked ); 6264 gSavedSettings.setBOOL( control_name, !checked );
6293 return true; 6265 return true;
6294 } 6266 }
@@ -9810,6 +9782,7 @@ void initialize_menus()
9810 addMenu(new LLEditEnableDuplicate(), "Edit.EnableDuplicate"); 9782 addMenu(new LLEditEnableDuplicate(), "Edit.EnableDuplicate");
9811 addMenu(new LLEditEnableTakeOff(), "Edit.EnableTakeOff"); 9783 addMenu(new LLEditEnableTakeOff(), "Edit.EnableTakeOff");
9812 addMenu(new LLEditEnableCustomizeAvatar(), "Edit.EnableCustomizeAvatar"); 9784 addMenu(new LLEditEnableCustomizeAvatar(), "Edit.EnableCustomizeAvatar");
9785 addMenu(new LLAdvancedRebakeTextures(), "Advanced.RebakeTextures");
9813 9786
9814 // View menu 9787 // View menu
9815 addMenu(new LLViewMouselook(), "View.Mouselook"); 9788 addMenu(new LLViewMouselook(), "View.Mouselook");
@@ -10120,7 +10093,6 @@ void initialize_menus()
10120 addMenu(new LLAdvancedToggleDebugAvatarRotation(), "Advanced.ToggleDebugAvatarRotation"); 10093 addMenu(new LLAdvancedToggleDebugAvatarRotation(), "Advanced.ToggleDebugAvatarRotation");
10121 addMenu(new LLAdvancedCheckDebugAvatarRotation(), "Advanced.CheckDebugAvatarRotation"); 10094 addMenu(new LLAdvancedCheckDebugAvatarRotation(), "Advanced.CheckDebugAvatarRotation");
10122 addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments"); 10095 addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments");
10123 addMenu(new LLAdvancedRebakeTextures(), "Advanced.RebakeTextures");
10124 addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); 10096 addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures");
10125 addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); 10097 addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures");
10126 10098