From aaf8d2c2f1d0823b7532cbcabb39dfc9f831367c Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 27 Jan 2011 00:29:30 +0100 Subject: [PATCH] Debug settings from login screen --- indra/newview/llviewermenu.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 7d31d4085..d0787197a 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -830,8 +830,16 @@ void init_menus() gLoginMenuBarView = (LLMenuBarGL*)LLUICtrlFactory::getInstance()->buildMenu("menu_login.xml", gMenuHolder); LLRect menuBarRect = gLoginMenuBarView->getRect(); - gLoginMenuBarView->setRect(LLRect(menuBarRect.mLeft, menuBarRect.mTop, gViewerWindow->getRootView()->getRect().getWidth() - menuBarRect.mLeft, menuBarRect.mBottom)); + + menu = new LLMenuGL(CLIENT_MENU_NAME); + menu->append(new LLMenuItemCallGL("Debug Settings...", LLFloaterSettingsDebug::show, NULL, NULL)); + gLoginMenuBarView->appendMenu(menu); + menu->updateParent(LLMenuGL::sMenuContainer); + gLoginMenuBarView->setRect(LLRect(menuBarRect.mLeft, menuBarRect.mTop, + gViewerWindow->getRootView()->getRect().getWidth() - menuBarRect.mLeft, + menuBarRect.mBottom)); + gLoginMenuBarView->setBackgroundColor( color ); gMenuHolder->addChild(gLoginMenuBarView);