summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-14 14:54:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-14 14:54:39 +0000
commitf842e0b40d8382011f0bc46b1446945d99ac0425 (patch)
tree5ddbb7c146a8ece28a4260d788350b1c2cf0dbed /src/gui/status.cpp
parentcbbcc5489e2f72a76b66ae849cbe8f1dc44246ca (diff)
downloadMana-f842e0b40d8382011f0bc46b1446945d99ac0425.tar.gz
Mana-f842e0b40d8382011f0bc46b1446945d99ac0425.tar.bz2
Mana-f842e0b40d8382011f0bc46b1446945d99ac0425.tar.xz
Mana-f842e0b40d8382011f0bc46b1446945d99ac0425.zip
Upgraded to Guichan 0.6.0 (merge from guichan-0.6.0 branch).
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index 0f149403..6bd696ec 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -361,32 +361,32 @@ void StatusWindow::draw(gcn::Graphics *g)
Window::draw(g);
}
-void StatusWindow::action(const std::string& eventId, gcn::Widget* widget)
+void StatusWindow::action(const gcn::ActionEvent &event)
{
// Stats Part
- if (eventId.length() == 3)
+ if (event.getId().length() == 3)
{
- if (eventId == "STR")
+ if (event.getId() == "STR")
{
player_node->raiseAttribute(LocalPlayer::STR);
}
- if (eventId == "AGI")
+ if (event.getId() == "AGI")
{
player_node->raiseAttribute(LocalPlayer::AGI);
}
- if (eventId == "VIT")
+ if (event.getId() == "VIT")
{
player_node->raiseAttribute(LocalPlayer::VIT);
}
- if (eventId == "INT")
+ if (event.getId() == "INT")
{
player_node->raiseAttribute(LocalPlayer::INT);
}
- if (eventId == "DEX")
+ if (event.getId() == "DEX")
{
player_node->raiseAttribute(LocalPlayer::DEX);
}
- if (eventId == "LUK")
+ if (event.getId() == "LUK")
{
player_node->raiseAttribute(LocalPlayer::LUK);
}