diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 32 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 7 |
2 files changed, 38 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 | |||
10376 | class 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 | |||
10387 | class 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"); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 8d55a3b..222a9ad 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -2009,6 +2009,13 @@ | |||
2009 | <on_click function="Advanced.ToggleClothingFloater" | 2009 | <on_click function="Advanced.ToggleClothingFloater" |
2010 | userdata="" /> | 2010 | userdata="" /> |
2011 | </menu_item_check> | 2011 | </menu_item_check> |
2012 | <menu_item_check name="Allow Multiple Instances" | ||
2013 | label="Allow Multiple Instances"> | ||
2014 | <on_click function="Advanced.ToggleMultipleViewers" | ||
2015 | userdata="" /> | ||
2016 | <on_check function="Advanced.CheckMultipleViewers" | ||
2017 | userdata="" /> | ||
2018 | </menu_item_check> | ||
2012 | <menu_item_call name="Debug Settings" | 2019 | <menu_item_call name="Debug Settings" |
2013 | label="Debug Settings"> | 2020 | label="Debug Settings"> |
2014 | <on_click function="Advanced.ShowDebugSettings" | 2021 | <on_click function="Advanced.ShowDebugSettings" |