diff options
Diffstat (limited to 'indra/llui/llprogressbar.h')
-rw-r--r-- | indra/llui/llprogressbar.h | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/indra/llui/llprogressbar.h b/indra/llui/llprogressbar.h index 00ad61d540..b6a5b0400d 100644 --- a/indra/llui/llprogressbar.h +++ b/indra/llui/llprogressbar.h @@ -40,37 +40,32 @@ class LLProgressBar : public LLView { public: - LLProgressBar(const std::string& name, const LLRect &rect); - virtual ~LLProgressBar(); - - void setPercent(const F32 percent); + struct Params : public LLInitParam::Block<Params, LLView::Params> + { + Optional<LLUIImage*> image_bar, + image_fill; - void setImageBar(const std::string &bar_name); - void setImageShadow(const std::string &shadow_name); + Optional<LLUIColor> color_bar, + color_bg; - void setColorBar(const LLColor4 &c); - void setColorBar2(const LLColor4 &c); - void setColorShadow(const LLColor4 &c); - void setColorBackground(const LLColor4 &c); + Params(); + }; + LLProgressBar(const Params&); + virtual ~LLProgressBar(); - static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory); + void setPercent(const F32 percent); /*virtual*/ void draw(); -protected: +private: F32 mPercentDone; - LLPointer<LLImageGL> mImageBar; - //LLUUID mImageBarID; - //LLString mImageBarName; - LLColor4 mColorBar; - LLColor4 mColorBar2; + LLPointer<LLUIImage> mImageBar; + LLUIColor mColorBar; - LLPointer<LLImageGL> mImageShadow; - //LLUUID mImageShadowID; - //LLString mImageShadowName; - LLColor4 mColorShadow; - LLColor4 mColorBackground; + LLUIColor mColorBackground; + + LLPointer<LLUIImage> mImageFill; }; #endif // LL_LLPROGRESSBAR_H |