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

Method SetAnimPos

ogsr_engine/xrGame/ui/UIAnimatedStatic.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void CUIAnimatedStatic::SetAnimPos(float pos)
75{
76 R_ASSERT(pos >= 0 && pos <= 1);
77
78 u32 curFrame = u32(m_uFrameCount * pos);
79
80 if (curFrame != m_uCurFrame)
81 {
82 m_uCurFrame = curFrame;
83 SetFrame(m_uCurFrame);
84 }
85}

Callers 1

InitAnimatedStaticMethod · 0.80

Calls 1

u32Enum · 0.50

Tested by

no test coverage detected