summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/contributions.txt2
-rw-r--r--indra/llui/lluictrl.h3
-rw-r--r--indra/newview/llfloatercamera.cpp9
-rw-r--r--indra/newview/llfloatercamera.h2
4 files changed, 15 insertions, 1 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt
index 68b87a41f5..8909084587 100755
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -217,6 +217,7 @@ Ansariel Hiller
MAINT-6519
MAINT-7899
STORM-2105
+ STORM-2145
Aralara Rajal
Arare Chantilly
CHUIBUG-191
@@ -770,6 +771,7 @@ Jonathan Yap
STORM-2100
STORM-2104
STORM-2142
+ STORM-2145
Kadah Coba
STORM-1060
STORM-1843
diff --git a/indra/llui/lluictrl.h b/indra/llui/lluictrl.h
index 550bee5c70..e53ecd30c2 100644
--- a/indra/llui/lluictrl.h
+++ b/indra/llui/lluictrl.h
@@ -212,7 +212,8 @@ public:
virtual void setColor(const LLColor4& color);
- F32 getCurrentTransparency();
+ // Ansariel: Changed to virtual. We might want to change the transparency ourself!
+ virtual F32 getCurrentTransparency();
void setTransparencyType(ETypeTransparency type);
ETypeTransparency getTransparencyType() const {return mTransparencyType;}
diff --git a/indra/newview/llfloatercamera.cpp b/indra/newview/llfloatercamera.cpp
index 5bebebf21f..c12ccb386e 100644
--- a/indra/newview/llfloatercamera.cpp
+++ b/indra/newview/llfloatercamera.cpp
@@ -378,6 +378,15 @@ BOOL LLFloaterCamera::postBuild()
return LLFloater::postBuild();
}
+F32 LLFloaterCamera::getCurrentTransparency()
+{
+
+ static LLCachedControl<F32> camera_opacity(gSavedSettings, "CameraOpacity");
+ static LLCachedControl<F32> active_floater_transparency(gSavedSettings, "ActiveFloaterTransparency");
+ return llmin(camera_opacity(), active_floater_transparency());
+
+}
+
void LLFloaterCamera::onViewButtonClick(const LLSD& user_data)
{
// bring up the prefs floater
diff --git a/indra/newview/llfloatercamera.h b/indra/newview/llfloatercamera.h
index 3601813bc1..481e9aec1b 100644
--- a/indra/newview/llfloatercamera.h
+++ b/indra/newview/llfloatercamera.h
@@ -91,6 +91,8 @@ private:
/*virtual*/ BOOL postBuild();
+ F32 getCurrentTransparency();
+
void onViewButtonClick(const LLSD& user_data);
ECameraControlMode determineMode();