diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-10 20:20:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-10 20:20:36 +0300 |
commit | 501f9934731114562c3659918d9d7b39625eb7b5 (patch) | |
tree | afefc8debeff97d40141a342135da8e7ab5cb9bb /src/gui/skilldialog.h | |
parent | 307818fecbd1f258c668a1667e76e950e9d22622 (diff) | |
download | mv-501f9934731114562c3659918d9d7b39625eb7b5.tar.gz mv-501f9934731114562c3659918d9d7b39625eb7b5.tar.bz2 mv-501f9934731114562c3659918d9d7b39625eb7b5.tar.xz mv-501f9934731114562c3659918d9d7b39625eb7b5.zip |
Allow add skills to shortcuts bar (same as for magic and script commands).
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r-- | src/gui/skilldialog.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 1cb832906..58c4bc42a 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -32,8 +32,9 @@ #include <map> +#define SKILL_MIN_ID 200000 + class Button; -//class Image; class Label; class ScrollArea; class SkillModel; @@ -44,6 +45,7 @@ struct SkillInfo { unsigned short id; std::string name; + std::string shortName; std::string dispName; Image *icon; bool modifiable; @@ -73,10 +75,8 @@ struct SkillInfo void draw(Graphics *graphics, int y, int width); }; - typedef std::vector<SkillInfo*> SkillList; - /** * The skill dialog. * @@ -117,6 +117,8 @@ class SkillDialog : public Window, public gcn::ActionListener void widgetResized(const gcn::Event &event); + void useItem(int itemId); + private: typedef std::map<int, SkillInfo*> SkillMap; SkillMap mSkills; |