summaryrefslogtreecommitdiff
path: root/src/gui/ministatuswindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatuswindow.h')
-rw-r--r--src/gui/ministatuswindow.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/ministatuswindow.h b/src/gui/ministatuswindow.h
index b4392b6f..a9939fcd 100644
--- a/src/gui/ministatuswindow.h
+++ b/src/gui/ministatuswindow.h
@@ -24,7 +24,9 @@
#include "eventlistener.h"
-#include "gui/widgets/popup.h"
+#include "gui/widgets/container.h"
+
+#include <guichan/mouselistener.hpp>
#include <vector>
@@ -38,7 +40,9 @@ class TextPopup;
*
* \ingroup Interface
*/
-class MiniStatusWindow : public Popup, public EventListener
+class MiniStatusWindow : public Container,
+ public EventListener,
+ public gcn::MouseListener
{
public:
MiniStatusWindow();
@@ -49,8 +53,7 @@ class MiniStatusWindow : public Popup, public EventListener
void logic(); // Updates icons
- void draw(gcn::Graphics *graphics)
- { drawChildren(graphics); }
+ void draw(gcn::Graphics *graphics);
void mouseMoved(gcn::MouseEvent &mouseEvent);
void mouseExited(gcn::MouseEvent &event);
@@ -77,6 +80,4 @@ class MiniStatusWindow : public Popup, public EventListener
std::vector<AnimatedSprite *> mIcons;
};
-extern MiniStatusWindow *miniStatusWindow;
-
#endif