Adding the option to keep the stats bar visible in mouselook and enabling it to be shown in mouselook in the first place.

Liny 2011-11-10 18:26:35 -08:00
parent 2229351c20
commit 85e4038aa4
2 changed files with 20 additions and 0 deletions

View File

@ -15404,6 +15404,7 @@ Change of this parameter will affect the layout of buttons in notification toast
<string>nearby_chat</string>
<string>im_container</string>
<string>beacons</string>
<string>stats</string>
</array>
</map>
<key>LandmarksSortedByDate</key>
@ -16779,5 +16780,16 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>0</integer>
</map>
<key>FSShowStatsBarInMouselook</key>
<map>
<key>Comment</key>
<string>Makes it so that the statistics bar stays visible when entering mouselook if it was open already.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
</map>
</llsd>

View File

@ -2065,10 +2065,18 @@ void LLAgent::endAnimationUpdateUI()
#if 0 // Use this once all floaters are registered
std::set<std::string> 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