MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getScreenPositionFromSlotPosition

Method getScreenPositionFromSlotPosition

game/ui/components/equipscreen.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27Vec2<int> EquipmentPaperDoll::getScreenPositionFromSlotPosition(const Vec2<int> &slot) const
28{
29 return this->resolvedLocation + slot * slotSizePixels;
30}
31
32Vec2<int> EquipmentPaperDoll::getScreenPositionFromSlotPosition(const Vec2<float> &slot) const
33{

Callers 1

handleItemPickupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected