summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 11:32:09 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 11:32:09 +0000
commitaa42c03c8a6b10d4fac03143f06811d94a253270 (patch)
tree09a497a8a55b7bb0e071dc17db05b53eefe6677e /src/gui/skill.cpp
parent6c1e52274a4842ea1ab24ed6a1fd19c6126597b7 (diff)
downloadmana-client-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.gz
mana-client-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.bz2
mana-client-aa42c03c8a6b10d4fac03143f06811d94a253270.tar.xz
mana-client-aa42c03c8a6b10d4fac03143f06811d94a253270.zip
Solved stats window problem with updating variable and sending stat update.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp16
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];