summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorJonathan Yap <jhwelch@gmail.com>2017-02-23 17:50:36 -0500
committerJonathan Yap <jhwelch@gmail.com>2017-02-23 17:50:36 -0500
commit5c4ae5b11a44ab4711f0148cb721f35be9f18100 (patch)
tree63547de0e485eda85168600962798467062731d3 /indra/llui
parent68413474c4479eee9bdbeb34ea131475ba1d646e (diff)
STORM-2145 Camera Presets -- some initial work
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfloater.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index 4f664a1ccc..8b0e19e4f6 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -1839,7 +1839,7 @@ void LLFloater::onClickCloseBtn(bool app_quitting)
// virtual
void LLFloater::draw()
{
- const F32 alpha = getCurrentTransparency();
+ F32 alpha = getCurrentTransparency();
// draw background
if( isBackgroundVisible() )
@@ -1854,6 +1854,16 @@ void LLFloater::draw()
LLUIImage* image = NULL;
LLColor4 color;
LLColor4 overlay_color;
+ std::string help_topic;
+ if (this->findHelpTopic(help_topic))
+ {
+ if("camera_floater" == help_topic)
+ {
+ alpha = llmin(LLCachedControl<F32>(gSavedSettings, "CameraOpacity"),
+ LLCachedControl<F32>(gSavedSettings, "ActiveFloaterTransparency"));
+ }
+ }
+
if (isBackgroundOpaque())
{
// NOTE: image may not be set