diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-21 13:36:56 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-21 13:36:56 +0000 |
commit | e5f70463119360222400e6b3529b7ab8748317ae (patch) | |
tree | 143f1fabdc6ea5532326b9e1fd1e0266b460f169 /src/gui/playerbox.h | |
parent | 7267fc408fd21dbc01a621aaa5a9e2115e297ff0 (diff) | |
download | mana-e5f70463119360222400e6b3529b7ab8748317ae.tar.gz mana-e5f70463119360222400e6b3529b7ab8748317ae.tar.bz2 mana-e5f70463119360222400e6b3529b7ab8748317ae.tar.xz mana-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.h | 11 |
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 |