diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-22 16:17:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-22 16:17:03 +0300 |
commit | 2131f55532ee9e71b41de99aff0718346fb184c6 (patch) | |
tree | 1aa214c995d2d5a05d8a02cf6b35dc4c6129d687 /src/gui/windows/equipmentwindow.h | |
parent | abdb8299382a797728b8dac80f6e687c90fb07ab (diff) | |
download | manaverse-2131f55532ee9e71b41de99aff0718346fb184c6.tar.gz manaverse-2131f55532ee9e71b41de99aff0718346fb184c6.tar.bz2 manaverse-2131f55532ee9e71b41de99aff0718346fb184c6.tar.xz manaverse-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.h | 4 |
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; |