summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.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/scrollarea.h
parent7267fc408fd21dbc01a621aaa5a9e2115e297ff0 (diff)
downloadmana-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/scrollarea.h')
-rw-r--r--src/gui/scrollarea.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gui/scrollarea.h b/src/gui/scrollarea.h
index ce745ba8..e3e57ae2 100644
--- a/src/gui/scrollarea.h
+++ b/src/gui/scrollarea.h
@@ -46,6 +46,11 @@ class ScrollArea : public gcn::ScrollArea {
ScrollArea(gcn::Widget *content);
/**
+ * Destructor.
+ */
+ ~ScrollArea();
+
+ /**
* Draws the scroll area.
*/
void draw(gcn::Graphics *graphics);
@@ -80,13 +85,14 @@ class ScrollArea : public gcn::ScrollArea {
void drawVMarker(gcn::Graphics *graphics);
void drawHMarker(gcn::Graphics *graphics);
- ImageRect background;
- ImageRect vMarker;
- Image *hscroll_left_default, *hscroll_right_default,
- *vscroll_down_default, *vscroll_up_default;
- Image *hscroll_left_pressed, *hscroll_right_pressed,
- *vscroll_down_pressed, *vscroll_up_pressed;
- float guiAlpha;
+ static int instances;
+ static ImageRect background;
+ static ImageRect vMarker;
+ static Image *hscroll_left_default, *hscroll_right_default;
+ static Image *vscroll_down_default, *vscroll_up_default;
+ static Image *hscroll_left_pressed, *hscroll_right_pressed;
+ static Image *vscroll_down_pressed, *vscroll_up_pressed;
+
bool opaque;
};