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

Method update

ogsr_engine/xrGame/SimpleDetector.cpp:144–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void CUIArtefactDetectorSimple::update()
145{
146 inherited::update();
147
148 if (m_parent->HudItemData())
149 {
150 if (m_flash_bone == BI_NONE)
151 setup_internals();
152
153 if (m_turn_off_flash_time && m_turn_off_flash_time < Device.dwTimeGlobal)
154 Flash(false, 0.0f);
155
156 firedeps fd;
157 m_parent->HudItemData()->setup_firedeps(fd);
158 if (m_flash_light->get_active())
159 m_flash_light->set_position(fd.vLastFP);
160
161 m_on_off_light->set_position(fd.vLastFP2);
162 if (!m_on_off_light->get_active())
163 m_on_off_light->set_active(true);
164
165 int frame = 0;
166 const u32 clr = m_pOnOfLAnim->CalculateRGB(Device.fTimeGlobal, frame);
167 m_on_off_light->set_color(Fcolor(clr));
168 }
169}

Callers

nothing calls this directly

Calls 9

updateFunction · 0.85
FcolorClass · 0.85
HudItemDataMethod · 0.80
setup_firedepsMethod · 0.80
get_activeMethod · 0.80
CalculateRGBMethod · 0.80
set_colorMethod · 0.80
set_positionMethod · 0.45
set_activeMethod · 0.45

Tested by

no test coverage detected