From a6f6dc9c2db87ed852cac1f8a3047f9b1d3efac0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Apr 2014 16:24:12 +0300 Subject: Add StatListener. --- src/gui/windows/ministatuswindow.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/gui/windows/ministatuswindow.h') diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h index bab117c19..171e1fe2f 100644 --- a/src/gui/windows/ministatuswindow.h +++ b/src/gui/windows/ministatuswindow.h @@ -26,7 +26,7 @@ #include "inventory.h" #include "listeners/attributelistener.h" -#include "listeners/depricatedlistener.h" +#include "listeners/statlistener.h" #include "gui/widgets/window.h" @@ -45,8 +45,8 @@ class TextPopup; */ class MiniStatusWindow final : public Window, public InventoryListener, - public DepricatedListener, - public AttributeListener + public AttributeListener, + public StatListener { public: MiniStatusWindow(); @@ -64,9 +64,6 @@ class MiniStatusWindow final : public Window, void drawIcons(Graphics *const graphics); - void processEvent(const Channels channel, - const DepricatedEvent &event) override final; - void updateStatus(); void logic() override final; @@ -96,6 +93,10 @@ class MiniStatusWindow final : public Window, const int oldVal, const int newVal) override final; + void statChanged(const int id, + const int oldVal1, + const int oldVal2) override final; + #ifdef USE_PROFILER void logicChildren(); #endif -- cgit v1.2.3-70-g09d2