aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-21 16:48:52 -0700
committerMcCabe Maxsted2009-10-21 16:48:52 -0700
commit65e2f7b4d2f080a5bcbe00a1926f7f95e7926a79 (patch)
tree3a77883e6f3c767dc942abcf9ee579b815e31ed7 /linden/indra/newview/llviewermenu.cpp
parentPartial fix for avatar names not displaying at > 1024m (won't be fixed until ... (diff)
downloadmeta-impy-65e2f7b4d2f080a5bcbe00a1926f7f95e7926a79.zip
meta-impy-65e2f7b4d2f080a5bcbe00a1926f7f95e7926a79.tar.gz
meta-impy-65e2f7b4d2f080a5bcbe00a1926f7f95e7926a79.tar.bz2
meta-impy-65e2f7b4d2f080a5bcbe00a1926f7f95e7926a79.tar.xz
Added Advanced menu option for AllowMultipleViewers for testing purposes
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp32
1 files changed, 31 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 4493ddf..d0e326c 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -10368,6 +10368,35 @@ class LLAvatarReportAbuse : public view_listener_t
10368 10368
10369 10369
10370 10370
10371////////////////////////////
10372// ALLOW MULTIPLE VIEWERS //
10373////////////////////////////
10374
10375
10376class LLAdvancedToggleMultipleViewers : public view_listener_t
10377{
10378 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
10379 {
10380 BOOL cur_val = gSavedSettings.getBOOL("AllowMultipleViewers");
10381 gSavedSettings.setBOOL("AllowMultipleViewers", !cur_val );
10382 return true;
10383 }
10384};
10385
10386
10387class LLAdvancedCheckMultipleViewers : public view_listener_t
10388{
10389 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
10390 {
10391 bool new_value = gSavedSettings.getBOOL("AllowMultipleViewers");
10392 std::string control_name = userdata["control"].asString();
10393 gMenuHolder->findControl(control_name)->setValue(new_value);
10394 return true;
10395 }
10396};
10397
10398
10399
10371/////////////// 10400///////////////
10372// RLVa Main // 10401// RLVa Main //
10373/////////////// 10402///////////////
@@ -10793,7 +10822,8 @@ void initialize_menus()
10793 addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions"); 10822 addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions");
10794 addMenu(new LLAdvancedRequestAdminStatus(), "Advanced.RequestAdminStatus"); 10823 addMenu(new LLAdvancedRequestAdminStatus(), "Advanced.RequestAdminStatus");
10795 addMenu(new LLAdvancedLeaveAdminStatus(), "Advanced.LeaveAdminStatus"); 10824 addMenu(new LLAdvancedLeaveAdminStatus(), "Advanced.LeaveAdminStatus");
10796 10825 addMenu(new LLAdvancedToggleMultipleViewers(), "Advanced.ToggleMultipleViewers");
10826 addMenu(new LLAdvancedCheckMultipleViewers(), "Advanced.CheckMultipleViewers");
10797 10827
10798 // RLVa 10828 // RLVa
10799 addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle"); 10829 addMenu(new RLVaMainToggle(), "RLVa.Main.Toggle");