summaryrefslogtreecommitdiff
path: root/src/gui/progressbar.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2008-04-26 00:13:11 +0000
committerYohann Ferreira <bertram@cegetel.net>2008-04-26 00:13:11 +0000
commita6731dd30a4ab7b2b19af18295293c13895b664d (patch)
tree44a6bd6b34e9995298d19a44b6019ab3235b7563 /src/gui/progressbar.h
parentba366046e31523664b2deab4d48d9962aa8bac7e (diff)
downloadmana-client-a6731dd30a4ab7b2b19af18295293c13895b664d.tar.gz
mana-client-a6731dd30a4ab7b2b19af18295293c13895b664d.tar.bz2
mana-client-a6731dd30a4ab7b2b19af18295293c13895b664d.tar.xz
mana-client-a6731dd30a4ab7b2b19af18295293c13895b664d.zip
Made smooth color changing and smooth progress optional.
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r--src/gui/progressbar.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h
index eb0795fa..ddabbb77 100644
--- a/src/gui/progressbar.h
+++ b/src/gui/progressbar.h
@@ -98,10 +98,28 @@ class ProgressBar : public gcn::Widget {
Uint8
getBlue() { return mBlue; }
+ /**
+ * Set wether the progress is moved smoothly
+ */
+ void
+ setSmoothProgress(bool smoothProgress)
+ { mSmoothProgress = smoothProgress; }
+
+ /**
+ * Set wether the color changing is made smoothly
+ */
+ void
+ setSmoothColorChange(bool smoothColorChange)
+ { mSmoothColorChange = smoothColorChange; }
+
+
private:
float mProgress, mProgressToGo;
+ bool mSmoothProgress;
+
Uint8 mRed, mGreen, mBlue;
Uint8 mRedToGo, mGreenToGo, mBlueToGo;
+ bool mSmoothColorChange;
static ImageRect mBorder;
static int mInstances;