diff options
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index f2bf610c..88e16047 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -77,7 +77,10 @@ std::string SkillListModel::getElementAt(int i) { //return skill_db[skillList[i]->id]; char tmp[128]; - sprintf(tmp, "%s Lv: %i Sp: %i", skill_db[skillList[i]->id], skillList[i]->lv, skillList[i]->sp); + sprintf(tmp, "%s Lv: %i Sp: %i", + skill_db[skillList[i]->id], + skillList[i]->lv, + skillList[i]->sp); return tmp; } return ""; @@ -158,6 +161,12 @@ void SkillDialog::action(const std::string& eventId) if (eventId == "inc") { //increment skill + //if (char_info->skill_point > 0) { + // WFIFOW(0) = net_w_value(0x0112); + // WFIFOW(2) = net_w_value( + // get_skill_id(skill_list_dialog[3].d1)); + // WFIFOSET(4); + //} } else if (eventId == "close") { @@ -165,6 +174,11 @@ void SkillDialog::action(const std::string& eventId) } } +SkillListModel* SkillDialog::getModel() +{ + return skills; +} + void SkillDialog::setPoints(int i) { char tmp[128]; |