summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.h
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-07 04:00:55 -0700
committerFate <fate-tmw@googlemail.com>2008-12-07 04:00:55 -0700
commit3fcd6a549fc825f4185a6dc248922e02988caed5 (patch)
tree2def3534088760ec3d06860eb0af936ec1e66b5b /src/gui/ministatus.h
parent68923d079602d8a8b7f35e1b56032e03e323ea09 (diff)
downloadmana-client-3fcd6a549fc825f4185a6dc248922e02988caed5.tar.gz
mana-client-3fcd6a549fc825f4185a6dc248922e02988caed5.tar.bz2
mana-client-3fcd6a549fc825f4185a6dc248922e02988caed5.tar.xz
mana-client-3fcd6a549fc825f4185a6dc248922e02988caed5.zip
Added client-side status change handlers (text, icon, particle effect, audio).
Diffstat (limited to 'src/gui/ministatus.h')
-rw-r--r--src/gui/ministatus.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/ministatus.h b/src/gui/ministatus.h
index d7f6f68c..fa9d3d24 100644
--- a/src/gui/ministatus.h
+++ b/src/gui/ministatus.h
@@ -23,10 +23,12 @@
#define _TMW_MINISTATUS_H
#include <iosfwd>
+#include <vector>
#include "window.h"
#include "../guichanfwd.h"
+#include "../animatedsprite.h"
class ProgressBar;
@@ -48,6 +50,15 @@ class MiniStatusWindow : public Window
*/
void draw(gcn::Graphics *graphics);
+ /**
+ * Sets one of the icons
+ */
+ void setIcon(int index, AnimatedSprite *sprite);
+
+ void eraseIcon(int index);
+
+ void drawIcons(Graphics *graphics);
+
private:
/**
* Updates this dialog with values from player_node
@@ -63,6 +74,8 @@ class MiniStatusWindow : public Window
gcn::Label *mHpLabel;
gcn::Label *mMpLabel;
gcn::Label *mXpLabel;
+
+ std::vector<AnimatedSprite *> mIcons;
};
#endif