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

Method SetProgressPos

ogsr_engine/xrGame/ui/UIProgressBar.cpp:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void CUIProgressBar::SetProgressPos(float _Pos)
67{
68 m_ProgressPos.y = _Pos;
69 clamp(m_ProgressPos.y, m_MinPos, m_MaxPos);
70 if (!m_animated)
71 m_ProgressPos.x = m_ProgressPos.y;
72 UpdateProgressBar();
73}
74
75float _sign(const float& v) { return (v > 0.0f) ? +1.0f : -1.0f; }
76void CUIProgressBar::Update()

Callers 12

SetCarHealthMethod · 0.80
SetPowerMethod · 0.80
SetNoiseMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
InitItemMethod · 0.80
UpdateMethod · 0.80
InitProgressBarMethod · 0.80
UpdateMethod · 0.80
ForceFinishMethod · 0.80
SetInfoMethod · 0.80

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected