aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerwindow.cpp48
1 files changed, 36 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp
index d8f182c..762e21a 100644
--- a/linden/indra/newview/llviewerwindow.cpp
+++ b/linden/indra/newview/llviewerwindow.cpp
@@ -1908,16 +1908,6 @@ void LLViewerWindow::initWorldUI()
1908 1908
1909 // keep onscreen 1909 // keep onscreen
1910 gFloaterView->adjustToFitScreen(gFloaterMap, FALSE); 1910 gFloaterView->adjustToFitScreen(gFloaterMap, FALSE);
1911
1912 if (gSavedSettings.getBOOL("ShowCameraControls"))
1913 {
1914 LLFloaterCamera::show(NULL);
1915 }
1916
1917 if (gSavedSettings.getBOOL("ShowMovementControls"))
1918 {
1919 LLFloaterMove::show(NULL);
1920 }
1921 1911
1922 gIMMgr = LLIMMgr::getInstance(); 1912 gIMMgr = LLIMMgr::getInstance();
1923 1913
@@ -2214,6 +2204,10 @@ void LLViewerWindow::setNormalControlsVisible( BOOL visible )
2214 { 2204 {
2215 gMenuBarView->setVisible( visible ); 2205 gMenuBarView->setVisible( visible );
2216 gMenuBarView->setEnabled( visible ); 2206 gMenuBarView->setEnabled( visible );
2207
2208 // ...and set the menu color appropriately.
2209 setMenuBackgroundColor(gAgent.getGodLevel() > GOD_NOT,
2210 LLAppViewer::instance()->isInProductionGrid());
2217 } 2211 }
2218 2212
2219 if ( gStatusBar ) 2213 if ( gStatusBar )
@@ -2223,8 +2217,38 @@ void LLViewerWindow::setNormalControlsVisible( BOOL visible )
2223 } 2217 }
2224} 2218}
2225 2219
2226 2220void LLViewerWindow::setMenuBackgroundColor(bool god_mode, bool dev_grid)
2227 2221{
2222 LLString::format_map_t args;
2223 LLColor4 new_bg_color;
2224
2225 if(god_mode && LLAppViewer::instance()->isInProductionGrid())
2226 {
2227 new_bg_color = gColors.getColor( "MenuBarGodBgColor" );
2228 }
2229 else if(god_mode && !LLAppViewer::instance()->isInProductionGrid())
2230 {
2231 new_bg_color = gColors.getColor( "MenuNonProductionGodBgColor" );
2232 }
2233 else if(!god_mode && !LLAppViewer::instance()->isInProductionGrid())
2234 {
2235 new_bg_color = gColors.getColor( "MenuNonProductionBgColor" );
2236 }
2237 else
2238 {
2239 new_bg_color = gColors.getColor( "MenuBarBgColor" );
2240 }
2241
2242 if(gMenuBarView)
2243 {
2244 gMenuBarView->setBackgroundColor( new_bg_color );
2245 }
2246
2247 if(gStatusBar)
2248 {
2249 gStatusBar->setBackgroundColor( new_bg_color );
2250 }
2251}
2228 2252
2229void LLViewerWindow::drawDebugText() 2253void LLViewerWindow::drawDebugText()
2230{ 2254{