summaryrefslogtreecommitdiff
path: root/src/gui/windows/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 16:24:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 16:24:12 +0300
commita6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0 (patch)
treebd1e6b6a1cdb42b5e6d4489158d438fe8c05f533 /src/gui/windows/ministatuswindow.cpp
parentaf0ae4d0b7c56d540639bb1f4ba7cc458ec718c1 (diff)
downloadplus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.gz
plus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.bz2
plus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.tar.xz
plus-a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0.zip
Add StatListener.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r--src/gui/windows/ministatuswindow.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 6fb330bbf..2320ac08a 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -112,8 +112,6 @@ MiniStatusWindow::MiniStatusWindow() :
mTextPopup->postInit();
mStatusPopup->postInit();
- listen(CHANNEL_ATTRIBUTES);
-
StatusWindow::updateHPBar(mHpBar);
if (Net::getGameHandler()->canUseMagicBar() && statusWindow)
@@ -251,14 +249,13 @@ void MiniStatusWindow::drawIcons(Graphics *const graphics)
}
}
-void MiniStatusWindow::processEvent(const Channels channel A_UNUSED,
- const DepricatedEvent &event)
+void MiniStatusWindow::statChanged(const int id,
+ const int oldVal1 A_UNUSED,
+ const int oldVal2 A_UNUSED)
{
- if (event.getName() == EVENT_UPDATESTAT)
- {
+ if (statusWindow)
statusWindow->updateMPBar(mMpBar);
- StatusWindow::updateJobBar(mJobBar);
- }
+ StatusWindow::updateJobBar(mJobBar);
}
void MiniStatusWindow::attributeChanged(const int id,