summaryrefslogtreecommitdiff
path: root/src/interface/ProgressBar.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-27 19:06:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-27 19:06:17 (GMT)
commit5befe5c25f8f188e7588de44ab2c8bead22ae999 (patch)
tree643b02af217770c1a3156be03e01442557795760 /src/interface/ProgressBar.h
parentf8ca8af387b8611c18ca7c5357efd19c8bc28941 (diff)
downloadpowder-5befe5c25f8f188e7588de44ab2c8bead22ae999.zip
powder-5befe5c25f8f188e7588de44ab2c8bead22ae999.tar.gz
Local file browser + some more interesting things like Progress bar UI component
Diffstat (limited to 'src/interface/ProgressBar.h')
-rw-r--r--src/interface/ProgressBar.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/interface/ProgressBar.h b/src/interface/ProgressBar.h
new file mode 100644
index 0000000..9d803cc
--- /dev/null
+++ b/src/interface/ProgressBar.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "Component.h"
+
+namespace ui
+{
+ class ProgressBar: public Component
+ {
+ int progress;
+ float intermediatePos;
+ std::string progressStatus;
+ public:
+ ProgressBar(Point position, Point size);
+ virtual void SetProgress(int progress);
+ virtual void SetStatus(std::string status);
+ virtual void Draw(const Point & screenPos);
+ virtual void Tick(float dt);
+ };
+}