mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
683 B
683 B
Smooth Changing Progress Bar
This is a fairly simple extension to Progress Bar to allow it to change smoothly rather than jumping.
You configure this as follows:
- Set
PercentChangeSpeed
to the amount of percent change per second - Optionally set
PercentChangeFrequency
; at 0, it updates every frame, otherwise it can update less frequently by setting this to a number of seconds - Call
SetPercentSmoothly
instead ofSetPercent
- (
SetPercent
is not virtual inUProgressBar
so we cannot override that. This also means that if you want to interrupt the smooth change, you need to callStopSmoothPercentChange
)
- (