summaryrefslogtreecommitdiff
path: root/indra/llui/llloadingindicator.h
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-04-19 20:17:05 -0700
committerRichard Linden <none@none>2011-04-19 20:17:05 -0700
commit98ec4db650c2dbae0e28ae186a43218bff344b49 (patch)
treef2a630d9cbaca3c6dcf696dce262d8b9140302f5 /indra/llui/llloadingindicator.h
parentfe91b0dbf27c432f71ea2ac01997adf332179cc0 (diff)
parent6b47a5ec782257b1aba31b0c9bec8c6f3709ba6f (diff)
merge
Diffstat (limited to 'indra/llui/llloadingindicator.h')
-rw-r--r--indra/llui/llloadingindicator.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/indra/llui/llloadingindicator.h b/indra/llui/llloadingindicator.h
index 4e4a224ef6..c0cb1cc74a 100644
--- a/indra/llui/llloadingindicator.h
+++ b/indra/llui/llloadingindicator.h
@@ -36,8 +36,8 @@
/**
* Perpetual loading indicator (a la MacOSX or YouTube)
*
- * Number of rotations per second can be overriden
- * with the "roations_per_sec" parameter.
+ * Number of rotations per second can be overridden
+ * with the "images_per_sec" parameter.
*
* Can start/stop spinning.
*
@@ -49,11 +49,24 @@ class LLLoadingIndicator
{
LOG_CLASS(LLLoadingIndicator);
public:
+
+ struct Images : public LLInitParam::Block<Images>
+ {
+ Multiple<LLUIImage*> image;
+
+ Images()
+ : image("image")
+ {}
+ };
+
struct Params : public LLInitParam::Block<Params, LLUICtrl::Params>
{
- Optional<F32> rotations_per_sec;
+ Optional<F32> images_per_sec;
+ Batch<Images> images;
+
Params()
- : rotations_per_sec("rotations_per_sec", 1.0f)
+ : images_per_sec("images_per_sec", 1.0f),
+ images("images")
{}
};
@@ -74,14 +87,15 @@ public:
private:
LLLoadingIndicator(const Params&);
- friend class LLUICtrlFactory;
+ void initFromParams(const Params&);
- class Data;
+ friend class LLUICtrlFactory;
- F32 mRotationsPerSec;
+ F32 mImagesPerSec;
S8 mCurImageIdx;
- LLPointer<LLUIImage> mCurImagep;
LLFrameTimer mImageSwitchTimer;
+
+ std::vector<LLUIImagePtr> mImages;
};
#endif // LL_LLLOADINGINDICATOR_H