aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-06 22:16:12 -0700
committerMcCabe Maxsted2009-10-06 22:16:12 -0700
commit0bd17be512fbf47600a7971208244e73424429f4 (patch)
tree4ea2e45dee3aeba79249b9a984e9db5582353bf5 /linden/indra/newview/llviewermenu.cpp
parentApplied RLVa-1.0.2c_20091005_Imprudence-1.2.0-diff.patch (diff)
downloadmeta-impy-0bd17be512fbf47600a7971208244e73424429f4.zip
meta-impy-0bd17be512fbf47600a7971208244e73424429f4.tar.gz
meta-impy-0bd17be512fbf47600a7971208244e73424429f4.tar.bz2
meta-impy-0bd17be512fbf47600a7971208244e73424429f4.tar.xz
Applied RLVa-1.0.3e_20091005_Imprudence-1.2.0-diff.patch by Kitty Barnett
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermenu.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 98dd0ea..55cc2a6 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -953,7 +953,7 @@ void init_client_menu(LLMenuGL* menu)
953// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-1.0.0e 953// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Modified: RLVa-1.0.0e
954 #ifdef RLV_ADVANCED_TOGGLE_RLVA 954 #ifdef RLV_ADVANCED_TOGGLE_RLVA
955 if (gSavedSettings.controlExists(RLV_SETTING_MAIN)) 955 if (gSavedSettings.controlExists(RLV_SETTING_MAIN))
956 menu->append(new LLMenuItemCheckGL("Restrained Life API", &rlvDbgToggleEnabled, NULL, &rlvDbgGetEnabled, NULL)); 956 menu->append(new LLMenuItemCheckGL("Restrained Life API", &rlvToggleEnabled, NULL, &rlvGetEnabled, NULL));
957 #endif // RLV_ADVANCED_TOGGLE_RLVA 957 #endif // RLV_ADVANCED_TOGGLE_RLVA
958// [/RLVa:KB] 958// [/RLVa:KB]
959 959
@@ -1407,30 +1407,24 @@ void init_debug_baked_texture_menu(LLMenuGL* menu)
1407// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g 1407// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-1.0.0g
1408void init_debug_rlva_menu(LLMenuGL* menu) 1408void init_debug_rlva_menu(LLMenuGL* menu)
1409{ 1409{
1410 // Experimental feature toggles 1410 // Debug options
1411 { 1411 {
1412 /* 1412 LLMenuGL* pDbgMenu = new LLMenuGL("Debug");
1413 #ifdef RLV_EXPERIMENTAL
1414 LLMenuGL* sub_menu = new LLMenuGL("Experimental");
1415 1413
1416 menu->appendMenu(sub_menu); 1414 if (gSavedSettings.controlExists(RLV_SETTING_DEBUG))
1417 #endif // RLV_EXPERIMENTAL 1415 pDbgMenu->append(new LLMenuItemCheckGL("Show Debug Messages", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_DEBUG));
1418 */ 1416 pDbgMenu->appendSeparator();
1419 } 1417 if (gSavedSettings.controlExists(RLV_SETTING_ENABLELEGACYNAMING))
1418 pDbgMenu->append(new LLMenuItemCheckGL("Enable Legacy Naming", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_ENABLELEGACYNAMING));
1420 1419
1421 // Unit tests 1420 menu->appendMenu(pDbgMenu);
1422 { 1421 menu->appendSeparator();
1423 #ifdef RLV_DEBUG_TESTS
1424 init_debug_rlva_tests_menu(menu);
1425 #endif // RLV_DEBUG_TESTS
1426 } 1422 }
1427 1423
1428 #ifdef RLV_EXTENSION_ENABLE_WEAR 1424 #ifdef RLV_EXTENSION_ENABLE_WEAR
1429 if (gSavedSettings.controlExists(RLV_SETTING_ENABLEWEAR)) 1425 if (gSavedSettings.controlExists(RLV_SETTING_ENABLEWEAR))
1430 {
1431 menu->append(new LLMenuItemCheckGL("Enable Wear", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_ENABLEWEAR)); 1426 menu->append(new LLMenuItemCheckGL("Enable Wear", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_ENABLEWEAR));
1432 menu->appendSeparator(); 1427 menu->appendSeparator();
1433 }
1434 #endif // RLV_EXTENSION_ENABLE_WEAR 1428 #endif // RLV_EXTENSION_ENABLE_WEAR
1435 1429
1436 #ifdef RLV_EXTENSION_HIDELOCKED 1430 #ifdef RLV_EXTENSION_HIDELOCKED
@@ -1444,6 +1438,12 @@ void init_debug_rlva_menu(LLMenuGL* menu)
1444 } 1438 }
1445 #endif // RLV_EXTENSION_HIDELOCKED 1439 #endif // RLV_EXTENSION_HIDELOCKED
1446 1440
1441 if (gSavedSettings.controlExists(RLV_SETTING_FORBIDGIVETORLV))
1442 menu->append(new LLMenuItemCheckGL("Forbid Give to #RLV", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_FORBIDGIVETORLV));
1443 if (gSavedSettings.controlExists(RLV_SETTING_ENABLELEGACYNAMING))
1444 menu->append(new LLMenuItemCheckGL("Show Name Tags", menu_toggle_control, NULL, menu_check_control, (void*)RLV_SETTING_SHOWNAMETAGS));
1445 menu->appendSeparator();
1446
1447 #ifdef RLV_EXTENSION_FLOATER_RESTRICTIONS 1447 #ifdef RLV_EXTENSION_FLOATER_RESTRICTIONS
1448 // TODO-RLVa: figure out a way to tell if floater_rlv_behaviour.xml exists 1448 // TODO-RLVa: figure out a way to tell if floater_rlv_behaviour.xml exists
1449 menu->append(new LLMenuItemCallGL("Restrictions...", RlvFloaterBehaviour::show, NULL, NULL)); 1449 menu->append(new LLMenuItemCallGL("Restrictions...", RlvFloaterBehaviour::show, NULL, NULL));
@@ -10376,7 +10376,7 @@ class RLVaMainToggle : public view_listener_t
10376{ 10376{
10377 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 10377 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
10378 { 10378 {
10379 rlvDbgToggleEnabled(NULL); 10379 rlvToggleEnabled(NULL);
10380 return true; 10380 return true;
10381 } 10381 }
10382}; 10382};
@@ -10385,7 +10385,7 @@ class RLVaMainCheck : public view_listener_t
10385{ 10385{
10386 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 10386 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
10387 { 10387 {
10388 bool new_value = rlvDbgGetEnabled(NULL); 10388 bool new_value = rlvGetEnabled(NULL);
10389 std::string control_name = userdata["control"].asString(); 10389 std::string control_name = userdata["control"].asString();
10390 gMenuHolder->findControl(control_name)->setValue(new_value); 10390 gMenuHolder->findControl(control_name)->setValue(new_value);
10391 return true; 10391 return true;