From e5f70463119360222400e6b3529b7ab8748317ae Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 21 May 2005 13:36:56 +0000 Subject: 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. --- src/gui/playerbox.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/gui/playerbox.h') 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,13 +33,19 @@ * * \ingroup GUI */ -class PlayerBox : public gcn::ScrollArea { +class PlayerBox : public gcn::ScrollArea +{ public: /** * Constructor. */ PlayerBox(); + /** + * Destructor. + */ + ~PlayerBox(); + /** * Draws the scroll area. */ @@ -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 -- cgit v1.2.3-60-g2f50