summaryrefslogtreecommitdiff
path: root/src/gui/status.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-15 14:43:16 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-15 14:47:24 -0600
commit18aaa873abcaa617bbd296f73138d062423662b8 (patch)
treecfdcf6d3a5750549c01df38cda27f0ea14b47279 /src/gui/status.h
parentfa6d39d9f56e09abfb6b48bacdd66ddbad20c641 (diff)
downloadMana-18aaa873abcaa617bbd296f73138d062423662b8.tar.gz
Mana-18aaa873abcaa617bbd296f73138d062423662b8.tar.bz2
Mana-18aaa873abcaa617bbd296f73138d062423662b8.tar.xz
Mana-18aaa873abcaa617bbd296f73138d062423662b8.zip
Merge and cleanup attribute code
Diffstat (limited to 'src/gui/status.h')
-rw-r--r--src/gui/status.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/gui/status.h b/src/gui/status.h
index 3e5df917..6e8371c2 100644
--- a/src/gui/status.h
+++ b/src/gui/status.h
@@ -48,15 +48,16 @@ class StatusWindow : public Window, public gcn::ActionListener
void action(const gcn::ActionEvent &event);
/**
- * Draw this window
- */
- void draw(gcn::Graphics *graphics);
-
- /**
* Updates this dialog with values from PLAYER_INFO *char_info
*/
void update();
+ // TODO: only update what changed
+ std::string update(int id) { update(); return ""; }
+
+ // future use
+ void addAttribute(int id, const std::string &name, bool modifiable) {}
+
static void updateHPBar(ProgressBar *bar, bool showMax = false);
static void updateMPBar(ProgressBar *bar, bool showMax = false);
static void updateXPBar(ProgressBar *bar, bool percent = true);
@@ -76,15 +77,8 @@ class StatusWindow : public Window, public gcn::ActionListener
/**
* Derived Statistics captions
*/
- gcn::Label *mStatsAttackLabel, *mStatsDefenseLabel;
- gcn::Label *mStatsMagicAttackLabel, *mStatsMagicDefenseLabel;
- gcn::Label *mStatsAccuracyLabel, *mStatsEvadeLabel;
- gcn::Label *mStatsReflexLabel;
-
- gcn::Label *mStatsAttackPoints, *mStatsDefensePoints;
- gcn::Label *mStatsMagicAttackPoints, *mStatsMagicDefensePoints;
- gcn::Label *mStatsAccuracyPoints, *mStatsEvadePoints;
- gcn::Label *mStatsReflexPoints;
+ gcn::Label *mDStatsLabel[7];
+ gcn::Label *mDPointsLabel[7];
/**
* Stats captions.