summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-10 20:20:36 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-10 20:20:36 +0300
commit501f9934731114562c3659918d9d7b39625eb7b5 (patch)
treeafefc8debeff97d40141a342135da8e7ab5cb9bb /src/gui/skilldialog.h
parent307818fecbd1f258c668a1667e76e950e9d22622 (diff)
downloadplus-501f9934731114562c3659918d9d7b39625eb7b5.tar.gz
plus-501f9934731114562c3659918d9d7b39625eb7b5.tar.bz2
plus-501f9934731114562c3659918d9d7b39625eb7b5.tar.xz
plus-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.h8
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;