summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-10 02:29:41 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-10 02:29:41 +0200
commit415af32db3321d4b3a8026da46dda451cf44c735 (patch)
tree3bb14334ffa98fceb1bdd87e6981a0046d26bb0e /src/gui/ministatus.h
parent2fd9c226b15c4a30c728601b493a82942f9fe7bf (diff)
downloadmanaverse-415af32db3321d4b3a8026da46dda451cf44c735.tar.gz
manaverse-415af32db3321d4b3a8026da46dda451cf44c735.tar.bz2
manaverse-415af32db3321d4b3a8026da46dda451cf44c735.tar.xz
manaverse-415af32db3321d4b3a8026da46dda451cf44c735.zip
Impliment show/hide bars in left top corner.
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;
};