diff options
author | Don Kjer <don@lindenlab.com> | 2010-12-15 15:47:09 -0800 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2010-12-15 15:47:09 -0800 |
commit | b0ee1c818aa779edbb57f70b723132ce8d7347f7 (patch) | |
tree | 3bc9bac8b1403e0eb6eb7be7d7f07d4946f2ce8c /indra/newview/llscrollingpanelparam.cpp | |
parent | c3958f75d2ef6c998d99e8e97e76e4de0468ecef (diff) | |
parent | 3e1f2083abe31d54b4b57ac7e8479b79461f6062 (diff) |
Merge from don_linden/viewer-sandbox
Diffstat (limited to 'indra/newview/llscrollingpanelparam.cpp')
-rw-r--r-- | indra/newview/llscrollingpanelparam.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llscrollingpanelparam.cpp b/indra/newview/llscrollingpanelparam.cpp index 05b273cd29..f8c20dada0 100644 --- a/indra/newview/llscrollingpanelparam.cpp +++ b/indra/newview/llscrollingpanelparam.cpp @@ -165,12 +165,16 @@ void LLScrollingPanelParam::draw() getChildView("max param text")->setVisible( FALSE ); LLPanel::draw(); + // If we're in a focused floater, don't apply the floater's alpha to visual param hint, + // making its behavior similar to texture controls'. + F32 alpha = getTransparencyType() == TT_ACTIVE ? 1.0f : getCurrentTransparency(); + // Draw the hints over the "less" and "more" buttons. gGL.pushUIMatrix(); { const LLRect& r = mHintMin->getRect(); gGL.translateUI((F32)r.mLeft, (F32)r.mBottom, 0.f); - mHintMin->draw(); + mHintMin->draw(alpha); } gGL.popUIMatrix(); @@ -178,7 +182,7 @@ void LLScrollingPanelParam::draw() { const LLRect& r = mHintMax->getRect(); gGL.translateUI((F32)r.mLeft, (F32)r.mBottom, 0.f); - mHintMax->draw(); + mHintMax->draw(alpha); } gGL.popUIMatrix(); |