diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-03 20:36:26 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-03 20:36:26 +0000 |
commit | ee5830a18757f5b34890a27a239e6a9214f8ac62 (patch) | |
tree | 7061779ec307ecdf9d10ad8ebda55b16a3aa68c7 /src/gui/skill.h | |
parent | b047811ba2e0fd8ced277f9b3f7bc35d6c274e09 (diff) | |
download | mana-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.h | 29 |
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 |