diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-08-22 09:33:11 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-08-22 09:33:11 +0000 |
commit | d17b7257fd0aeb71cc6e2bb144677e79f47ed13f (patch) | |
tree | 51c1e4d4e5b1cb91068392f676c1bee64dc09aa7 /src/gui/skill.cpp | |
parent | 52e80454ecefaf9be262169db3a366f623c5d7c7 (diff) | |
download | mana-d17b7257fd0aeb71cc6e2bb144677e79f47ed13f.tar.gz mana-d17b7257fd0aeb71cc6e2bb144677e79f47ed13f.tar.bz2 mana-d17b7257fd0aeb71cc6e2bb144677e79f47ed13f.tar.xz mana-d17b7257fd0aeb71cc6e2bb144677e79f47ed13f.zip |
Disabled use button in skill dialog since is still not being used.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index fc791cd5..5244b2f3 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -68,6 +68,7 @@ SkillDialog::SkillDialog(): pointsLabel = new gcn::Label("Skill Points:"); incButton = new Button("Up"); useButton = new Button("Use"); + useButton->setEnabled(false); closeButton = new Button("Close"); skillListBox->setEventId("skill"); @@ -129,18 +130,6 @@ void SkillDialog::action(const std::string& eventId) WFIFOSET(4); } } - else if (eventId == "use") - { - // Use skill - int selectedSkill = skillListBox->getSelected(); - if (selectedSkill >= 0) - { - WFIFOW(0) = net_w_value(0x0113); - WFIFOW(2) = 0; - WFIFOW(4) = net_w_value(skillList[selectedSkill]->id); - WFIFOL(6) = net_l_value(0); - } - } else if (eventId == "skill") { incButton->setEnabled( |