From 3da7fa61442364be6713359690a35f89aa8e613a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Feb 2013 01:30:46 +0300 Subject: Add support for show quest variables in skills window (evol only) This allow use pseudo skills controlled by quest variables. --- src/gui/skilldialog.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/skilldialog.h') diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h index 396718310..cf2b518e2 100644 --- a/src/gui/skilldialog.h +++ b/src/gui/skilldialog.h @@ -32,6 +32,7 @@ #include const int SKILL_MIN_ID = 200000; +const int SKILL_VAR_MIN_ID = 1000000; class Button; class Label; @@ -68,7 +69,7 @@ struct SkillInfo final int level; std::string skillLevel; int skillLevelWidth; - unsigned short id; + unsigned int id; bool modifiable; bool visible; SkillModel *model; @@ -145,6 +146,8 @@ class SkillDialog final : public Window, public gcn::ActionListener void updateTabSelection(); + void updateQuest(const int var, const int val); + private: typedef std::map SkillMap; SkillMap mSkills; -- cgit v1.2.3-60-g2f50