summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-10 04:15:39 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-10 04:15:39 +0200
commitf74cf5eb61deccc478d2a4cbc7a352748d96c65e (patch)
tree1f5c31014cc82a4ad079374ecfb775fe847b8d80 /src/gui/ministatus.h
parentc117ead1f66522c7b8cb29b4179a78e7dc775d28 (diff)
downloadmv-f74cf5eb61deccc478d2a4cbc7a352748d96c65e.tar.gz
mv-f74cf5eb61deccc478d2a4cbc7a352748d96c65e.tar.bz2
mv-f74cf5eb61deccc478d2a4cbc7a352748d96c65e.tar.xz
mv-f74cf5eb61deccc478d2a4cbc7a352748d96c65e.zip
Add inventory slots bar in top left corner (hidden by default).
Diffstat (limited to 'src/gui/ministatus.h')
-rw-r--r--src/gui/ministatus.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/ministatus.h b/src/gui/ministatus.h
index ead2a5f51..3cf9eef16 100644
--- a/src/gui/ministatus.h
+++ b/src/gui/ministatus.h
@@ -22,6 +22,7 @@
#ifndef MINISTATUS_H
#define MINISTATUS_H
+#include "inventory.h"
#include "listener.h"
#include "gui/widgets/popup.h"
@@ -46,7 +47,9 @@ class TextPopup;
*
* \ingroup Interface
*/
-class MiniStatusWindow : public Popup, public Mana::Listener
+class MiniStatusWindow : public Popup,
+ public InventoryListener,
+ public Mana::Listener
{
public:
MiniStatusWindow();
@@ -80,6 +83,8 @@ class MiniStatusWindow : public Popup, public Mana::Listener
void updateBars();
+ void slotsChanged(Inventory* inventory);
+
std::list <ProgressBar*> &getBars()
{ return mBars; }
@@ -102,6 +107,7 @@ class MiniStatusWindow : public Popup, public Mana::Listener
ProgressBar *mXpBar;
ProgressBar *mJobBar;
ProgressBar *mWeightBar;
+ ProgressBar *mInvSlotsBar;
ProgressBar *mStatusBar;
TextPopup *mTextPopup;
StatusPopup *mStatusPopup;