From d17b7257fd0aeb71cc6e2bb144677e79f47ed13f Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 22 Aug 2005 09:33:11 +0000 Subject: Disabled use button in skill dialog since is still not being used. --- src/gui/skill.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/gui/skill.cpp') 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( -- cgit v1.2.3-60-g2f50