[Floater Flexibility] Part one: Refactor all floaters to work with the dictionary in one way or another.

This commit is contained in:
Inusaito Sayori
2014-03-25 00:23:56 -04:00
parent ee610ceb3f
commit f37d83abe1
22 changed files with 219 additions and 512 deletions

View File

@@ -188,13 +188,13 @@ void RlvUIEnabler::onToggleSetEnv()
if (!fEnable)
{
// Only close the floaters if their instance exists and they're actually visible
if ( (LLFloaterEnvSettings::isOpen()) && (LLFloaterEnvSettings::instance()->getVisible()) )
if ( (LLFloaterEnvSettings::isOpen()) )
LLFloaterEnvSettings::instance()->close();
if ( (LLFloaterWindLight::isOpen()) && (LLFloaterWindLight::instance()->getVisible()) )
if ( (LLFloaterWindLight::isOpen()) )
LLFloaterWindLight::instance()->close();
if ( (LLFloaterWater::isOpen()) && (LLFloaterWater::instance()->getVisible()) )
if ( (LLFloaterWater::isOpen()) )
LLFloaterWater::instance()->close();
if ( (LLFloaterDayCycle::isOpen()) && (LLFloaterDayCycle::instance()->getVisible()) )
if ( (LLFloaterDayCycle::isOpen()) )
LLFloaterDayCycle::instance()->close();
}