void dbc::ProxyProgressObserver::SetRange(float lower, float upper) { m_rangeLower = AdjustRange(lower); m_rangeUpper = AdjustRange(upper); if (m_rangeLower > m_rangeUpper) { m_rangeLower = m_rangeUpper; // Progress will stuck in lower range } }
void ValueSliderWithLabel::SetValueInternal( float value, bool slider, bool textbox) { if(m_Value != value) { m_Value = value; AdjustRange(m_Value); onValueChanged.Call(this); UpdateValueSlider(slider, textbox); } }