diff options
author | McCabe Maxsted | 2010-08-04 03:14:59 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-26 11:16:21 -0700 |
commit | 56967d90c7ece6de856147f1db58e1d54e9823fa (patch) | |
tree | fa433925c6e94a23ae70de9a76dbda7a4b41765e /linden/indra/newview/llviewermenu.cpp | |
parent | Don't list clients as 'Failure' as it confuses people and isn't very nice (diff) | |
download | meta-impy-56967d90c7ece6de856147f1db58e1d54e9823fa.zip meta-impy-56967d90c7ece6de856147f1db58e1d54e9823fa.tar.gz meta-impy-56967d90c7ece6de856147f1db58e1d54e9823fa.tar.bz2 meta-impy-56967d90c7ece6de856147f1db58e1d54e9823fa.tar.xz |
Added menu option for toggling IM auto-responses on/off underneath the Busy option
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index fb69389..9e2cc3d 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -5443,6 +5443,24 @@ class LLWorldSetBusy : public view_listener_t | |||
5443 | } | 5443 | } |
5444 | }; | 5444 | }; |
5445 | 5445 | ||
5446 | class LLWorldToggleAutoResponse: public view_listener_t | ||
5447 | { | ||
5448 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
5449 | { | ||
5450 | gSavedPerAccountSettings.setBOOL("InstantMessageResponseEnabled", !gSavedPerAccountSettings.getBOOL("InstantMessageResponseEnabled")); | ||
5451 | return true; | ||
5452 | } | ||
5453 | |||
5454 | }; | ||
5455 | |||
5456 | class LLWorldCheckAutoResponse: public view_listener_t | ||
5457 | { | ||
5458 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
5459 | { | ||
5460 | gMenuHolder->findControl(userdata["control"].asString())->setValue(gSavedPerAccountSettings.getBOOL("InstantMessageResponseEnabled")); | ||
5461 | return true; | ||
5462 | } | ||
5463 | }; | ||
5446 | 5464 | ||
5447 | class LLWorldCreateLandmark : public view_listener_t | 5465 | class LLWorldCreateLandmark : public view_listener_t |
5448 | { | 5466 | { |
@@ -10947,6 +10965,8 @@ void initialize_menus() | |||
10947 | addMenu(new LLWorldTeleportHome(), "World.TeleportHome"); | 10965 | addMenu(new LLWorldTeleportHome(), "World.TeleportHome"); |
10948 | addMenu(new LLWorldSetAway(), "World.SetAway"); | 10966 | addMenu(new LLWorldSetAway(), "World.SetAway"); |
10949 | addMenu(new LLWorldSetBusy(), "World.SetBusy"); | 10967 | addMenu(new LLWorldSetBusy(), "World.SetBusy"); |
10968 | addMenu(new LLWorldToggleAutoResponse(), "World.ToggleAutoResponse"); | ||
10969 | addMenu(new LLWorldCheckAutoResponse(), "World.CheckAutoResponse"); | ||
10950 | 10970 | ||
10951 | addMenu(new LLWorldEnableCreateLandmark(), "World.EnableCreateLandmark"); | 10971 | addMenu(new LLWorldEnableCreateLandmark(), "World.EnableCreateLandmark"); |
10952 | addMenu(new LLWorldEnableSetHomeLocation(), "World.EnableSetHomeLocation"); | 10972 | addMenu(new LLWorldEnableSetHomeLocation(), "World.EnableSetHomeLocation"); |