Made transparency setting for llDialog a cached variable.

ziree 2012-04-08 21:19:17 +02:00
parent 56869bfaa9
commit e28f64f05d
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,7 @@ LLScriptFloater::LLScriptFloater(const LLSD& key)
setMouseDownCallback(boost::bind(&LLScriptFloater::onMouseDown, this));
setOverlapsScreenChannel(true);
mIsDockedStateForcedCallback = boost::bind(&LLAgentCamera::cameraMouselook, &gAgentCamera);
mNoTransparency = gSavedSettings.getBOOL("FSScriptDialogNoTransparency");
}
bool LLScriptFloater::toggle(const LLUUID& notification_id)
@ -304,7 +305,7 @@ void LLScriptFloater::restorePosition()
// always on opaque background.
F32 LLScriptFloater::getCurrentTransparency()
{
if (gSavedSettings.getBOOL("FSScriptDialogNoTransparency"))
if (mNoTransparency)
{
return 1.0;
}

View File

@ -210,6 +210,7 @@ private:
LLUUID mNotificationId;
LLUUID mObjectId;
bool mSaveFloaterPosition;
bool mNoTransparency;
};
#endif //LL_SCRIPTFLOATER_H