MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / InitIcons

Method InitIcons

ogsr_engine/xrGame/ui/UIArtefactPanel.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void 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
30void CUIArtefactPanel::Draw()
31{

Callers 1

UpdateArtefactPanelMethod · 0.80

Calls 3

SetShaderMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected