aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermenu.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 4c91a0a..cfc9a14 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -7589,6 +7589,22 @@ class LLAdvancedToggleSit: public view_listener_t
7589 } 7589 }
7590}; 7590};
7591 7591
7592class LLAdvancedCheckSit : public view_listener_t
7593{
7594 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
7595 {
7596 if(gAgent.getAvatarObject()->mIsSitting)
7597 {
7598 gMenuHolder->findControl(userdata["control"].asString())->setValue(true);
7599 }
7600 else
7601 {
7602 gMenuHolder->findControl(userdata["control"].asString())->setValue(false);
7603 }
7604 return true;
7605 }
7606};
7607
7592 7608
7593///////////// 7609/////////////
7594// PHANTOM // 7610// PHANTOM //
@@ -9819,6 +9835,7 @@ void initialize_menus()
9819 addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); 9835 addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole");
9820 addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); 9836 addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides");
9821 addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit"); 9837 addMenu(new LLAdvancedToggleSit(), "Advanced.ToggleSit");
9838 addMenu(new LLAdvancedCheckSit(), "Emerald.CheckSit");
9822 addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom"); 9839 addMenu(new LLAdvancedTogglePhantom(), "Advanced.TogglePhantom");
9823 addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom"); 9840 addMenu(new LLAdvancedCheckPhantom(), "Advanced.CheckPhantom");
9824 addMenu(new LLAdvancedToggleAssetBrowser(),"Advanced.ToggleAssetBrowser"); 9841 addMenu(new LLAdvancedToggleAssetBrowser(),"Advanced.ToggleAssetBrowser");