summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-22 16:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-22 16:17:03 +0300
commit2131f55532ee9e71b41de99aff0718346fb184c6 (patch)
tree1aa214c995d2d5a05d8a02cf6b35dc4c6129d687 /src/gui/windows/equipmentwindow.h
parentabdb8299382a797728b8dac80f6e687c90fb07ab (diff)
downloadmanaplus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.gz
manaplus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.bz2
manaplus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.xz
manaplus-2131f55532ee9e71b41de99aff0718346fb184c6.zip
Move equipment window slots names mapping to id to separate file.
Diffstat (limited to 'src/gui/windows/equipmentwindow.h')
-rw-r--r--src/gui/windows/equipmentwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/equipmentwindow.h b/src/gui/windows/equipmentwindow.h
index 8c77b6d28..5295e20b5 100644
--- a/src/gui/windows/equipmentwindow.h
+++ b/src/gui/windows/equipmentwindow.h
@@ -94,6 +94,8 @@ class EquipmentWindow final : public Window,
void recalcSize();
+ static void prepareSlotNames();
+
private:
Item *getItem(const int x, const int y) const A_WARN_UNUSED;
@@ -123,6 +125,8 @@ class EquipmentWindow final : public Window,
static int parseSlotName(const std::string &name) A_WARN_UNUSED;
+ static std::map<std::string, int> mSlotNames;
+
Equipment *mEquipment;
PlayerBox *mPlayerBox;