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

Method UpdateAnim

ogsr_engine/xrGame/HitMarker.cpp:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void SHitMark::UpdateAnim()
66{
67 int frame;
68 u32 clr = m_lanim->CalculateRGB(Device.fTimeGlobal - m_StartTime, frame);
69 m_UIStaticItem->SetColor(subst_alpha(m_UIStaticItem->GetColor(), color_get_A(clr)));
70}
71
72SHitMark::~SHitMark() { xr_delete(m_UIStaticItem); }
73

Callers

nothing calls this directly

Calls 5

subst_alphaFunction · 0.85
color_get_AFunction · 0.85
CalculateRGBMethod · 0.80
SetColorMethod · 0.45
GetColorMethod · 0.45

Tested by

no test coverage detected