summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-14 16:45:13 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-14 16:45:13 +0000
commitd1395845cdc678db2a71326f2e6f20253ed14cac (patch)
tree9a75fe0591fc7bd74f828aa048aa027f59a4ae66 /src/gui/skill.cpp
parent6c3a2550813c14290307f2ad91e1d76eea3e6a02 (diff)
downloadmana-d1395845cdc678db2a71326f2e6f20253ed14cac.tar.gz
mana-d1395845cdc678db2a71326f2e6f20253ed14cac.tar.bz2
mana-d1395845cdc678db2a71326f2e6f20253ed14cac.tar.xz
mana-d1395845cdc678db2a71326f2e6f20253ed14cac.zip
Merged 0.0 changes from revision 2988 to 3035 to trunk.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 4f552fd7..1b00a732 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -74,7 +74,7 @@ SkillDialog::SkillDialog():
mUseButton->setEnabled(false);
mCloseButton = new Button("Close", "close", this);
- mSkillListBox->setEventId("skill");
+ mSkillListBox->setActionEventId("skill");
skillScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
skillScrollArea->setDimension(gcn::Rectangle(5, 5, 230, 180));
@@ -103,9 +103,9 @@ SkillDialog::~SkillDialog()
cleanList();
}
-void SkillDialog::action(const std::string &eventId, gcn::Widget *widget)
+void SkillDialog::action(const gcn::ActionEvent &event)
{
- if (eventId == "inc")
+ if (event.getId() == "inc")
{
// Increment skill
int selectedSkill = mSkillListBox->getSelected();
@@ -114,13 +114,13 @@ void SkillDialog::action(const std::string &eventId, gcn::Widget *widget)
player_node->raiseSkill(mSkillList[selectedSkill]->id);
}
}
- else if (eventId == "skill")
+ else if (event.getId() == "skill")
{
mIncButton->setEnabled(
mSkillListBox->getSelected() > -1 &&
player_node->mSkillPoint > 0);
}
- else if (eventId == "close")
+ else if (event.getId() == "close")
{
setVisible(false);
}