summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.h
diff options
context:
space:
mode:
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