diff options
| author | Sergei Litovchuk <slitovchuk@productengine.com> | 2009-12-01 20:29:26 +0200 |
|---|---|---|
| committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2009-12-01 20:29:26 +0200 |
| commit | 57fca8d6e8c3c925fc3a3fff8833c4e43db8f24c (patch) | |
| tree | b5ac1efe546cedbf337d98a3d2ffbbb5b23e36d1 /indra/llui/llprogressbar.cpp | |
| parent | 56504054d8e0cba815c25035ed7dd71015cf3222 (diff) | |
| parent | 3385ce87f14f71d739a3834fbf3436a962fbdd9d (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/llprogressbar.cpp')
| -rw-r--r-- | indra/llui/llprogressbar.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llui/llprogressbar.cpp b/indra/llui/llprogressbar.cpp index c8b6e814e1..62ca569e6c 100644 --- a/indra/llui/llprogressbar.cpp +++ b/indra/llui/llprogressbar.cpp @@ -72,12 +72,13 @@ LLProgressBar::~LLProgressBar() void LLProgressBar::draw() { static LLTimer timer; - - LLUIImagePtr bar_fg_imagep = LLUI::getUIImage("progressbar_fill.tga"); + F32 alpha = getDrawContext().mAlpha; - mImageBar->draw(getLocalRect(), mColorBackground.get()); + LLColor4 image_bar_color = mColorBackground.get(); + image_bar_color.setAlpha(alpha); + mImageBar->draw(getLocalRect(), image_bar_color); - F32 alpha = 0.5f + 0.5f*0.5f*(1.f + (F32)sin(3.f*timer.getElapsedTimeF32())); + alpha *= 0.5f + 0.5f*0.5f*(1.f + (F32)sin(3.f*timer.getElapsedTimeF32())); LLColor4 bar_color = mColorBar.get(); bar_color.mV[VALPHA] *= alpha; // modulate alpha LLRect progress_rect = getLocalRect(); |
