| 85 | } |
| 86 | |
| 87 | static const EquipmentLayoutSlot *getSlotAtPosition(Vec2<int> pos, |
| 88 | const std::list<EquipmentLayoutSlot> &slots) |
| 89 | { |
| 90 | for (auto &slot : slots) |
| 91 | { |
| 92 | if (slot.bounds.within(pos)) |
| 93 | { |
| 94 | return &slot; |
| 95 | } |
| 96 | } |
| 97 | return nullptr; |
| 98 | } |
| 99 | |
| 100 | void EquipmentPaperDoll::onRender() |
| 101 | { |