From 85e4038aa446683bbdc638e808d537f4af5a946f Mon Sep 17 00:00:00 2001 From: Liny Date: Thu, 10 Nov 2011 18:26:35 -0800 Subject: [PATCH] Adding the option to keep the stats bar visible in mouselook and enabling it to be shown in mouselook in the first place. --- indra/newview/app_settings/settings.xml | 12 ++++++++++++ indra/newview/llagent.cpp | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 28f746f182..01bafdc504 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -15404,6 +15404,7 @@ Change of this parameter will affect the layout of buttons in notification toast nearby_chat im_container beacons + stats LandmarksSortedByDate @@ -16779,5 +16780,16 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSShowStatsBarInMouselook + + Comment + Makes it so that the statistics bar stays visible when entering mouselook if it was open already. + Persist + 1 + Type + Boolean + Value + 0 + diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 777db5e2b6..925ffadf98 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -2065,10 +2065,18 @@ void LLAgent::endAnimationUpdateUI() #if 0 // Use this once all floaters are registered std::set exceptions; exceptions.insert("mini_map"); + if(gSavedSettings.getBOOL("FSShowStatsBarInMouselook")) + { + exceptions.insert("stats"); + } LLFloaterReg::hideVisibleInstances(exceptions); #else // Use this for now LLFloaterView::skip_list_t skip_list; skip_list.insert(LLFloaterReg::findInstance("mini_map")); + if(gSavedSettings.getBOOL("FSShowStatsBarInMouselook")) + { + skip_list.insert(LLFloaterReg::findInstance("stats")); + } gFloaterView->pushVisibleAll(FALSE, skip_list); #endif