| 64 | } |
| 65 | |
| 66 | void 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 | |
| 75 | float _sign(const float& v) { return (v > 0.0f) ? +1.0f : -1.0f; } |
| 76 | void CUIProgressBar::Update() |
no test coverage detected