SetProgress(handle, integer)
Description
Section titled “Description”The SetProgress Lua function defines a value on the range for a progress bar. A handle input argument defines the progress bar. The progress bar needs have been created using the StartProgress function.
See the ProgressBar topic for more info regarding progress bars and links to other related functions.
Arguments
Section titled “Arguments”- Handle:
The handle for the progress bar. - Integer:
The desired value indicating the current status or position of the progress bar.
Return
Section titled “Return”This function does not return anything.
Example
Section titled “Example”This example sets a range value for the progress bar created using the example in the StartProgress topic (link above):
| Copy CodeLua |
| ``` |
| return function() |
-- Sets the current value to 5 for a progress bar with the matching handleSetProgress(progressHandle, 5)end