summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-13 00:33:01 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-13 19:50:00 +0100
commita0973bc302f2972c4c70d973090c4d29ea2f7c6d (patch)
treee840f5807aa8b3cfc69b17a17ac3bf9cba317485 /src/gui/equipmentwindow.h
parent253c660d8e3341ad2d78658a23e599d5aaa84c00 (diff)
downloadmana-a0973bc302f2972c4c70d973090c4d29ea2f7c6d.tar.gz
mana-a0973bc302f2972c4c70d973090c4d29ea2f7c6d.tar.bz2
mana-a0973bc302f2972c4c70d973090c4d29ea2f7c6d.tar.xz
mana-a0973bc302f2972c4c70d973090c4d29ea2f7c6d.zip
Added background support to the equipment boxes.
The background images are auto-centered. Also, for Manaserv, a new background parameter has been added in the box node of the equip.xml file to specify the background image. Note that the filename is relative to the gui theme folder. Reviewed-by: Thorbjorn Lindeijer Resolves: TMW-Mantis #769.
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 57a13d40..408dd8e7 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -23,6 +23,7 @@
#define EQUIPMENTWINDOW_H
#include "equipment.h"
+#include "resources/image.h"
#include "gui/widgets/window.h"
@@ -70,8 +71,15 @@ class EquipmentWindow : public Window, public gcn::ActionListener
*/
struct EquipBox
{
+ EquipBox() :
+ posX(0),
+ posY(0),
+ backgroundImage(0)
+ {}
+
int posX;
int posY;
+ Image* backgroundImage;
};
EquipBox *mEquipBox; /**< Equipment Boxes. */