From 501f9934731114562c3659918d9d7b39625eb7b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Mar 2012 20:20:36 +0300 Subject: Allow add skills to shortcuts bar (same as for magic and script commands). --- src/gui/skilldialog.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/skilldialog.h') 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 +#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 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 SkillMap; SkillMap mSkills; -- cgit v1.2.3-70-g09d2