diff options
author | David Seikel | 2011-04-26 21:30:21 +1000 |
---|---|---|
committer | David Seikel | 2011-04-26 21:30:21 +1000 |
commit | da97e24c3b045d16589124496d032ffb9b4ca07f (patch) | |
tree | 34d84cf4355f83e1a106d06a10ed2a4bb121fdc4 /linden/indra/newview/llviewermenu.cpp | |
parent | Apparently there is a wrong client tag for firestorm out in the wild. (diff) | |
parent | Changed version to Experimental 2011.04.19 (diff) | |
download | meta-impy-da97e24c3b045d16589124496d032ffb9b4ca07f.zip meta-impy-da97e24c3b045d16589124496d032ffb9b4ca07f.tar.gz meta-impy-da97e24c3b045d16589124496d032ffb9b4ca07f.tar.bz2 meta-impy-da97e24c3b045d16589124496d032ffb9b4ca07f.tar.xz |
Merge remote-tracking branch 'imprudence/exp' into exp
Conflicts (for future reference):
linden/indra/llcommon/llstring.cpp
linden/indra/newview/llpanelnetwork.cpp
linden/indra/newview/llselectmgr.cpp
linden/indra/newview/llstartup.cpp
linden/indra/newview/lltoolmgr.cpp
linden/indra/newview/llvoavatar.cpp
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 0d34f18..b85f3ca 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -89,6 +89,7 @@ | |||
89 | #include "llfloateractivespeakers.h" | 89 | #include "llfloateractivespeakers.h" |
90 | #include "llfloateranimpreview.h" | 90 | #include "llfloateranimpreview.h" |
91 | #include "llfloateravatarinfo.h" | 91 | #include "llfloateravatarinfo.h" |
92 | #include "llfloateravatarlist.h" | ||
92 | #include "llfloateravatartextures.h" | 93 | #include "llfloateravatartextures.h" |
93 | #include "llfloaterbeacons.h" | 94 | #include "llfloaterbeacons.h" |
94 | #include "llfloaterbuildoptions.h" | 95 | #include "llfloaterbuildoptions.h" |
@@ -725,10 +726,26 @@ void init_menus() | |||
725 | gLoginMenuBarView->setBackgroundColor( color ); | 726 | gLoginMenuBarView->setBackgroundColor( color ); |
726 | 727 | ||
727 | gMenuHolder->addChild(gLoginMenuBarView); | 728 | gMenuHolder->addChild(gLoginMenuBarView); |
728 | |||
729 | } | 729 | } |
730 | 730 | ||
731 | 731 | ||
732 | void update_grid_specific_menus() | ||
733 | { | ||
734 | if (!gMenuHolder || !gMenuBarView) | ||
735 | { | ||
736 | return; | ||
737 | } | ||
738 | else | ||
739 | { | ||
740 | // Disable these when we're not on Second Life grids | ||
741 | // (or don't have URLS for them if non-SL grids start using 'em) -- MC | ||
742 | gMenuHolder->childSetEnabled("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
743 | gMenuHolder->childSetVisible("Manage My Account...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
744 | gMenuHolder->childSetEnabled("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
745 | gMenuHolder->childSetVisible("Account History...", gHippoGridManager->getConnectedGrid()->isSecondLife()); | ||
746 | } | ||
747 | } | ||
748 | |||
732 | 749 | ||
733 | void init_client_menu(LLMenuGL* menu) | 750 | void init_client_menu(LLMenuGL* menu) |
734 | { | 751 | { |
@@ -6131,6 +6148,10 @@ class LLShowFloater : public view_listener_t | |||
6131 | { | 6148 | { |
6132 | LLFloaterPerms::toggleInstance(LLSD()); | 6149 | LLFloaterPerms::toggleInstance(LLSD()); |
6133 | } | 6150 | } |
6151 | else if (floater_name == "full radar") | ||
6152 | { | ||
6153 | LLFloaterAvatarList::toggle(NULL); | ||
6154 | } | ||
6134 | return true; | 6155 | return true; |
6135 | } | 6156 | } |
6136 | }; | 6157 | }; |
@@ -6205,6 +6226,10 @@ class LLFloaterVisible : public view_listener_t | |||
6205 | if (!instn) new_value = false; | 6226 | if (!instn) new_value = false; |
6206 | else new_value = instn->getVisible(); | 6227 | else new_value = instn->getVisible(); |
6207 | } | 6228 | } |
6229 | else if (floater_name == "full radar") | ||
6230 | { | ||
6231 | new_value = (LLFloaterAvatarList::getInstance() != NULL); | ||
6232 | } | ||
6208 | gMenuHolder->findControl(control_name)->setValue(new_value); | 6233 | gMenuHolder->findControl(control_name)->setValue(new_value); |
6209 | return true; | 6234 | return true; |
6210 | } | 6235 | } |
@@ -10699,19 +10724,6 @@ class LLAdvancedDumpAvatarLocalTextures : public view_listener_t | |||
10699 | } | 10724 | } |
10700 | }; | 10725 | }; |
10701 | 10726 | ||
10702 | /////////////////////////////////// | ||
10703 | // Reload Avatar Cloud Particles // | ||
10704 | /////////////////////////////////// | ||
10705 | |||
10706 | |||
10707 | class LLAdvancedReloadAvatarCloudParticle : public view_listener_t | ||
10708 | { | ||
10709 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
10710 | { | ||
10711 | LLVOAvatar::initCloud(); | ||
10712 | return true; | ||
10713 | } | ||
10714 | }; | ||
10715 | 10727 | ||
10716 | /////////// | 10728 | /////////// |
10717 | // Crash // | 10729 | // Crash // |
@@ -11501,7 +11513,6 @@ void initialize_menus() | |||
11501 | addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments"); | 11513 | addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments"); |
11502 | addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); | 11514 | addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); |
11503 | addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); | 11515 | addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); |
11504 | addMenu(new LLAdvancedReloadAvatarCloudParticle(), "Advanced.ReloadAvatarCloudParticle"); | ||
11505 | 11516 | ||
11506 | // Advanced > Crash | 11517 | // Advanced > Crash |
11507 | addMenu(new LLAdvancedCrash(), "Advanced.Crash"); | 11518 | addMenu(new LLAdvancedCrash(), "Advanced.Crash"); |