From a0973bc302f2972c4c70d973090c4d29ea2f7c6d Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 13 Nov 2011 00:33:01 +0100 Subject: 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. --- src/gui/equipmentwindow.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/equipmentwindow.h') 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. */ -- cgit v1.2.3-60-g2f50