diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-18 03:03:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-18 03:03:40 +0300 |
commit | 0cc939c1c9f82e5688e2903e38d164db5bc749c1 (patch) | |
tree | 52bc699017aa1e24709050558ad2d3d63b9f6e23 /src/gui/equipmentwindow.h | |
parent | d4e2ffacb744f76c84c94cb16b2cc0e0e49153f7 (diff) | |
download | ManaVerse-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.gz ManaVerse-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.bz2 ManaVerse-0cc939c1c9f82e5688e2903e38d164db5bc749c1.tar.xz ManaVerse-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.h | 14 |
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; |