diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-20 14:20:10 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-20 14:20:10 +0000 |
commit | fec8d201c51d82c370cb6052209397d88d004490 (patch) | |
tree | 57c12776fce97ee9824cd2df2d7ab475014418ef /src/gui/stats.h | |
parent | 41b0b5c0ed80d812d13c8c92d286a8663084ec58 (diff) | |
download | mana-fec8d201c51d82c370cb6052209397d88d004490.tar.gz mana-fec8d201c51d82c370cb6052209397d88d004490.tar.bz2 mana-fec8d201c51d82c370cb6052209397d88d004490.tar.xz mana-fec8d201c51d82c370cb6052209397d88d004490.zip |
Converted the progress bar and stats dialog to Guichan widgets.
Diffstat (limited to 'src/gui/stats.h')
-rw-r--r-- | src/gui/stats.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/gui/stats.h b/src/gui/stats.h index d95dbb9c..a10a9c70 100644 --- a/src/gui/stats.h +++ b/src/gui/stats.h @@ -26,10 +26,30 @@ #ifndef _STATS_H #define _STATS_H -#include <allegro.h> #include "../main.h" #include "gui.h" +#include "window.h" +#include "progressbar.h" +#include <allegro.h> + +/** + * The player statistics dialog. + * + * \ingroup GUI + */ +class StatsDialog : public Window { + public: + StatsDialog(gcn::Container *parent); + ~StatsDialog(); + + /** + * Updates this dialog with values from PLAYER_INFO *char_info + */ + void update(); -void update_stats_dialog(); + private: + gcn::Label *hp, *sp, *gp; + ProgressBar *healthBar, *manaBar; +}; #endif |