| 142 | } |
| 143 | |
| 144 | void 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 | } |
nothing calls this directly
no test coverage detected