ProgressBar
ZSignal<float> ValueChanged;
void SetValue(float); // normalized to [0,1]
void SetRange(float min,float max); void SetRangeValue(float); // [min,max]
void SetIndeterminate(bool); void SetIndeterminateBlockWidth(float); void SetIndeterminateSpeed(float);
inline static float DefaultValueAnimDuration; // value animation duration (s), default 0.22
Pitfall
SetValueis[0,1],SetRangeValueis[min,max]— do not mix.
Version: sincev1.21.0value changes are eased (internaldisplayValue_, duration-driven; the fill and the%text move together and stop on time). The same version fixes the inner fill radius not matching the outer frame after stretching (track/clip/border used the memberheight_; now all usearrangedRect_.height / 2).
ProgressRing
void SetValue(float); void SetIndeterminate(bool); void SetThickness(float);
bool UseCache() const override { return false; }
Version:v1.12.0;UseCache=falsev1.12.2; NaN/Inf guardv1.14.0.