diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-14 12:16:56 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-14 12:16:56 +0000 |
commit | ef3069f212029c4ca277c2dc369d5f04066ef186 (patch) | |
tree | 13541f4b2268750ea96e9178b9799609a6a84aad /src/gui/progressbar.h | |
parent | 92ff85076658f0bd2d175b53e4ee1d03b9437aa3 (diff) | |
download | mana-ef3069f212029c4ca277c2dc369d5f04066ef186.tar.gz mana-ef3069f212029c4ca277c2dc369d5f04066ef186.tar.bz2 mana-ef3069f212029c4ca277c2dc369d5f04066ef186.tar.xz mana-ef3069f212029c4ca277c2dc369d5f04066ef186.zip |
Code duplication reduction by Doener, instance counting by me, and a small
improvement to the s character in the font.
Diffstat (limited to 'src/gui/progressbar.h')
-rw-r--r-- | src/gui/progressbar.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/gui/progressbar.h b/src/gui/progressbar.h index 3e751459..9568de9d 100644 --- a/src/gui/progressbar.h +++ b/src/gui/progressbar.h @@ -25,6 +25,7 @@ #define _TMW_PROGRESSBAR_H #include <guichan.hpp> +#include "../graphics.h" #include "../resources/image.h" /** @@ -74,37 +75,25 @@ class ProgressBar : public gcn::Widget { /** * Get The red value of color */ - unsigned char getRed() - { - return red; - } + unsigned char getRed(); /** * Get The red value of color */ - unsigned char getGreen() - { - return green; - } + unsigned char getGreen(); /** * Get The red value of color */ - unsigned char getBlue() - { - return blue; - } + unsigned char getBlue(); private: float progress; int red, green, blue; int redToGo, greenToGo, blueToGo; - // Bar Images - Image *dBackground; - Image *dTopLeftBorder, *dTopRightBorder, *dBottomLeftBorder; - Image *dBottomRightBorder; - Image *dLeftBorder, *dRightBorder, *dTopBorder, *dBottomBorder; + static ImageRect mBorder; + static int mInstances; }; #endif |