summaryrefslogtreecommitdiff
path: root/src/gui/skill.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-03 20:36:26 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-03 20:36:26 +0000
commitee5830a18757f5b34890a27a239e6a9214f8ac62 (patch)
tree7061779ec307ecdf9d10ad8ebda55b16a3aa68c7 /src/gui/skill.h
parentb047811ba2e0fd8ced277f9b3f7bc35d6c274e09 (diff)
downloadmana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.gz
mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.bz2
mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.tar.xz
mana-ee5830a18757f5b34890a27a239e6a9214f8ac62.zip
Skill gui beautifications by roderic.
Diffstat (limited to 'src/gui/skill.h')
-rw-r--r--src/gui/skill.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/src/gui/skill.h b/src/gui/skill.h
index 64b7d468..bf32fe64 100644
--- a/src/gui/skill.h
+++ b/src/gui/skill.h
@@ -25,16 +25,35 @@
#define _TMW_SKILL_H
#include <vector>
+#include <list>
#include <guichan/listmodel.hpp>
#include <guichan/actionlistener.hpp>
#include "window.h"
+#include "gccontainer.h"
#include "../guichanfwd.h"
class ProgressBar;
+class Skill_Tab : public GCContainer, public gcn::ActionListener
+{
+ public:
+ const std::string type;
+ Skill_Tab(std::string type);
+ void update();
+ void action(const gcn::ActionEvent &event) {}
+
+ protected:
+
+ std::vector<gcn::Label *> mSkillNameLabels;
+ std::vector<gcn::Label *> mSkillLevelLabels;
+ std::vector<gcn::Label *> mSkillExpLabels;
+ std::vector<ProgressBar *> mSkillProgress;
+};
+
+
/**
* The skill dialog.
*
@@ -62,12 +81,14 @@ class SkillDialog : public Window, public gcn::ActionListener
void draw(gcn::Graphics *g);
private:
- std::vector<gcn::Label *> mSkillNameLabels;
- std::vector<gcn::Label *> mSkillLevelLabels;
- std::vector<gcn::Label *> mSkillExpLabels;
- std::vector<ProgressBar *> mSkillProgress;
+
+ std::list<Skill_Tab*> mTabs;
+
};
+
+
+
extern SkillDialog *skillDialog;
#endif