summaryrefslogtreecommitdiff
path: root/src/gui/playerbox.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-21 13:36:56 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-21 13:36:56 +0000
commite5f70463119360222400e6b3529b7ab8748317ae (patch)
tree143f1fabdc6ea5532326b9e1fd1e0266b460f169 /src/gui/playerbox.h
parent7267fc408fd21dbc01a621aaa5a9e2115e297ff0 (diff)
downloadmana-client-e5f70463119360222400e6b3529b7ab8748317ae.tar.gz
mana-client-e5f70463119360222400e6b3529b7ab8748317ae.tar.bz2
mana-client-e5f70463119360222400e6b3529b7ab8748317ae.tar.xz
mana-client-e5f70463119360222400e6b3529b7ab8748317ae.zip
Only load resources once for player box, scroll area and text field. Also
tweaked the look a little, needs to be checked for opaque problem.
Diffstat (limited to 'src/gui/playerbox.h')
-rw-r--r--src/gui/playerbox.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/playerbox.h b/src/gui/playerbox.h
index cf7c3995..39fa39b4 100644
--- a/src/gui/playerbox.h
+++ b/src/gui/playerbox.h
@@ -33,7 +33,8 @@
*
* \ingroup GUI
*/
-class PlayerBox : public gcn::ScrollArea {
+class PlayerBox : public gcn::ScrollArea
+{
public:
/**
* Constructor.
@@ -41,6 +42,11 @@ class PlayerBox : public gcn::ScrollArea {
PlayerBox();
/**
+ * Destructor.
+ */
+ ~PlayerBox();
+
+ /**
* Draws the scroll area.
*/
void draw(gcn::Graphics *graphics);
@@ -55,7 +61,8 @@ class PlayerBox : public gcn::ScrollArea {
bool showPlayer; /**< Wether to show the player or not */
private:
- ImageRect background;
+ static int instances;
+ static ImageRect background;
};
#endif