summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-28 01:55:56 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-28 01:55:56 +0300
commitf60d54307c20d4150e630620dbe0be62b2a1b8a5 (patch)
treedc5661a9f75cf495bbea050b6566b1fa0240781e /src/gui/widgets/playerbox.h
parent3574afc2818a5401d825fe649d49a0b9fbccdf00 (diff)
downloadmanaverse-f60d54307c20d4150e630620dbe0be62b2a1b8a5.tar.gz
manaverse-f60d54307c20d4150e630620dbe0be62b2a1b8a5.tar.bz2
manaverse-f60d54307c20d4150e630620dbe0be62b2a1b8a5.tar.xz
manaverse-f60d54307c20d4150e630620dbe0be62b2a1b8a5.zip
Extend playerbox theming.
Diffstat (limited to 'src/gui/widgets/playerbox.h')
-rw-r--r--src/gui/widgets/playerbox.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/widgets/playerbox.h b/src/gui/widgets/playerbox.h
index 9e5a761b4..6498e69ec 100644
--- a/src/gui/widgets/playerbox.h
+++ b/src/gui/widgets/playerbox.h
@@ -25,6 +25,8 @@
#include <guichan/widgets/scrollarea.hpp>
+#include "graphics.h"
+
#include "localconsts.h"
class Being;
@@ -42,13 +44,17 @@ class PlayerBox : public gcn::ScrollArea
* Constructor. Takes the initial player character that this box should
* display, which defaults to <code>NULL</code>.
*/
- PlayerBox(Being *being = nullptr);
+ PlayerBox(Being *being, std::string skin = "");
+
+ PlayerBox(std::string skin = "");
/**
* Destructor.
*/
~PlayerBox();
+ void init(std::string skin);
+
/**
* Sets a new player character to be displayed by this box. Setting the
* player to <code>NULL</code> causes the box not to draw any
@@ -73,9 +79,8 @@ class PlayerBox : public gcn::ScrollArea
private:
Being *mBeing; /**< The character used for display */
- static float mAlpha;
- static int instances;
- static ImageRect background;
+ float mAlpha;
+ ImageRect mBackground;
};
#endif