summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatus.h')
-rw-r--r--src/gui/ministatus.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/ministatus.h b/src/gui/ministatus.h
index d30a38a9e..96cad5ed8 100644
--- a/src/gui/ministatus.h
+++ b/src/gui/ministatus.h
@@ -71,11 +71,29 @@ class MiniStatusWindow : public Popup, public Mana::Listener
void draw(gcn::Graphics *graphics);
void mouseMoved(gcn::MouseEvent &mouseEvent);
+
+ void mousePressed(gcn::MouseEvent &event);
+
void mouseExited(gcn::MouseEvent &event);
+ void showBar(std::string name, bool isVisible);
+
+ void updateBars();
+
+ std::list <ProgressBar*> &getBars()
+ { return mBars; }
+
private:
bool isInBar(ProgressBar *bar, int x, int y) const;
+ ProgressBar *createBar(float progress, int width, int height,
+ int color, std::string name,
+ std::string description);
+
+ void loadBars();
+
+ void saveBars();
+
/*
* Mini Status Bars
*/
@@ -86,6 +104,8 @@ class MiniStatusWindow : public Popup, public Mana::Listener
ProgressBar *mStatusBar;
TextPopup *mTextPopup;
StatusPopup *mStatusPopup;
+ std::list <ProgressBar*> mBars;
+ std::map <std::string, ProgressBar*> mBarNames;
std::vector<AnimatedSprite *> mIcons;
};