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

Method Update

ogsr_engine/xrGame/ui/UILabel.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void CUILabel::Update()
51{
52 CUIFrameLineWnd::Update();
53 if (m_lanim)
54 {
55 if (m_lainm_start_time < 0.0f)
56 m_lainm_start_time = Device.fTimeGlobal;
57 int frame;
58 u32 clr = m_lanim->CalculateRGB(Device.fTimeGlobal - m_lainm_start_time, frame);
59 SetColor(clr);
60 SetTextColor(clr);
61 }
62}

Callers

nothing calls this directly

Calls 4

UpdateFunction · 0.85
CalculateRGBMethod · 0.80
SetColorFunction · 0.70
SetTextColorFunction · 0.70

Tested by

no test coverage detected