aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r--linden/indra/newview/llviewermenu.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 9f20e8e..d48d5ed 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$ 5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2002-2007, Linden Research, Inc. 7 * Copyright (c) 2002-2008, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -609,6 +609,21 @@ void initialize_menus();
609// 609//
610// Break up groups of more than 6 items with separators 610// Break up groups of more than 6 items with separators
611//----------------------------------------------------------------------------- 611//-----------------------------------------------------------------------------
612
613void set_underclothes_menu_options()
614{
615 if (gMenuHolder && gAgent.isTeen())
616 {
617 gMenuHolder->getChildByName("Self Underpants", TRUE)->setVisible(FALSE);
618 gMenuHolder->getChildByName("Self Undershirt", TRUE)->setVisible(FALSE);
619 }
620 if (gMenuBarView && gAgent.isTeen())
621 {
622 gMenuBarView->getChildByName("Menu Underpants", TRUE)->setVisible(FALSE);
623 gMenuBarView->getChildByName("Menu Undershirt", TRUE)->setVisible(FALSE);
624 }
625}
626
612void init_menus() 627void init_menus()
613{ 628{
614 S32 top = gViewerWindow->getRootView()->getRect().getHeight(); 629 S32 top = gViewerWindow->getRootView()->getRect().getHeight();
@@ -645,12 +660,6 @@ void init_menus()
645 gDetachScreenPieMenu = (LLPieMenu*)gMenuHolder->getChildByName("Object Detach HUD", true); 660 gDetachScreenPieMenu = (LLPieMenu*)gMenuHolder->getChildByName("Object Detach HUD", true);
646 gDetachPieMenu = (LLPieMenu*)gMenuHolder->getChildByName("Object Detach", true); 661 gDetachPieMenu = (LLPieMenu*)gMenuHolder->getChildByName("Object Detach", true);
647 662
648 if (gAgent.isTeen())
649 {
650 gMenuHolder->getChildByName("Self Underpants", TRUE)->setVisible(FALSE);
651 gMenuHolder->getChildByName("Self Undershirt", TRUE)->setVisible(FALSE);
652 }
653
654 gPieAvatar = gUICtrlFactory->buildPieMenu("menu_pie_avatar.xml", gMenuHolder); 663 gPieAvatar = gUICtrlFactory->buildPieMenu("menu_pie_avatar.xml", gMenuHolder);
655 664
656 gPieObject = gUICtrlFactory->buildPieMenu("menu_pie_object.xml", gMenuHolder); 665 gPieObject = gUICtrlFactory->buildPieMenu("menu_pie_object.xml", gMenuHolder);
@@ -712,12 +721,6 @@ void init_menus()
712 gAttachSubMenu = gMenuBarView->getChildMenuByName("Attach Object", TRUE); 721 gAttachSubMenu = gMenuBarView->getChildMenuByName("Attach Object", TRUE);
713 gDetachSubMenu = gMenuBarView->getChildMenuByName("Detach Object", TRUE); 722 gDetachSubMenu = gMenuBarView->getChildMenuByName("Detach Object", TRUE);
714 723
715 if (gAgent.isTeen())
716 {
717 gMenuBarView->getChildByName("Menu Underpants", TRUE)->setVisible(FALSE);
718 gMenuBarView->getChildByName("Menu Undershirt", TRUE)->setVisible(FALSE);
719 }
720
721 // TomY TODO convert these two 724 // TomY TODO convert these two
722 LLMenuGL*menu; 725 LLMenuGL*menu;
723 726
@@ -765,6 +768,8 @@ void init_menus()
765 768
766} 769}
767 770
771
772
768void init_landmark_menu(LLMenuGL* menu) 773void init_landmark_menu(LLMenuGL* menu)
769{ 774{
770 if (!menu) return; 775 if (!menu) return;