summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorcallum <none@none>2009-11-25 14:54:34 -0800
committercallum <none@none>2009-11-25 14:54:34 -0800
commit5e41f8615faeb13881c1544c30f3679b0c5fca7e (patch)
tree56d0af75437e1c488bdef6431cae011ca4faf9b8 /indra/llui
parentf42dbc3cae76e2b694c176c73e7d1dd47b5e3582 (diff)
parent3efbd20980175f6dae2cecbfbbd23bb326948189 (diff)
Merge to Tip again (someone else checking in same time as me)
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llprogressbar.cpp9
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();