summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-18 03:03:40 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-18 03:03:40 +0300
commit0cc939c1c9f82e5688e2903e38d164db5bc749c1 (patch)
tree52bc699017aa1e24709050558ad2d3d63b9f6e23 /src/gui/equipmentwindow.h
parentd4e2ffacb744f76c84c94cb16b2cc0e0e49153f7 (diff)
downloadplus-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.gz
plus-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.bz2
plus-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.xz
plus-0cc939c1c9f82e5688e2903e38d164db5bc749c1.zip
Load equipment window configuration from equipmentwindow.xml file.
Now possible move or replace slots or play image.
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 91ee44253..082a9b409 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -28,6 +28,8 @@
#include "gui/widgets/window.h"
+#include "utils/xml.h"
+
#include <guichan/actionlistener.hpp>
#ifdef __GNUC__
@@ -90,7 +92,17 @@ class EquipmentWindow : public Window, public gcn::ActionListener
void fillBoxes();
- void addBox(int x, int y);
+ void fillDefault();
+
+ void addBox(int idx, int x, int y);
+
+ void loadWindow(xmlNodePtr windowNode);
+
+ void loadPlayerBox(xmlNodePtr playerBoxNode);
+
+ void loadSlot(xmlNodePtr slotNode);
+
+ int parseSlotName(std::string name);
Equipment *mEquipment;