| 13 | } |
| 14 | |
| 15 | void CUIArtefactPanel::InitIcons(const TIItemContainer& artefacts) |
| 16 | { |
| 17 | m_si.SetShader(InventoryUtilities::GetEquipmentIconsShader()); |
| 18 | m_vRects.clear(); |
| 19 | |
| 20 | for (const auto& art : artefacts) |
| 21 | { |
| 22 | const auto artefact = smart_cast<CArtefact*>(art); |
| 23 | if (artefact) |
| 24 | { |
| 25 | m_vRects.push_back(&(artefact->m_icon_params)); |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | void CUIArtefactPanel::Draw() |
| 31 | { |
no test coverage detected