StevesUEHelpers/doc/SmoothChangingProgress.md

19 lines
683 B
Markdown
Raw Permalink Normal View History

2024-10-30 16:02:00 +00:00
# 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 of `SetPercent`
* (`SetPercent` is not virtual in `UProgressBar` so we cannot override that. This
also means that if you want to interrupt the smooth change, you need to call
`StopSmoothPercentChange`)
## See Also
* [Widgets](Widgets.md)