summaryrefslogtreecommitdiff
path: root/src/gui/textfield.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/textfield.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/textfield.h')
-rw-r--r--src/gui/textfield.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/textfield.h b/src/gui/textfield.h
index a9be41e7..808b73ab 100644
--- a/src/gui/textfield.h
+++ b/src/gui/textfield.h
@@ -40,6 +40,11 @@ class TextField : public gcn::TextField {
TextField(const std::string& text = "");
/**
+ * Destructor.
+ */
+ ~TextField();
+
+ /**
* Draws the text field.
*/
virtual void draw(gcn::Graphics *graphics);
@@ -50,7 +55,8 @@ class TextField : public gcn::TextField {
void drawBorder(gcn::Graphics *graphics);
private:
- ImageRect skin;
+ static int instances;
+ static ImageRect skin;
};
#endif