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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/skill.cpp | 13 |
2 files changed, 6 insertions, 12 deletions
@@ -1,3 +1,8 @@ +2005-08-22 Eugenio Favalli <elvenprogrammer@gmail.com> + + * src/gui/skill.cpp: Disabled use button in skill dialog since is still not + being used. + 2005-08-20 Björn Steinbrink <B.Steinbrink@gmx.de> * src/openglgraphics.cpp: Added some missing state changes and checks. 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( |