Opens a progress bar. Closes the currently active progress bar.
_title | Title of the progress bar STRING |
_totalTime | Time for the progress bar to complete <NUMBER> |
_condition | Execute every frame. If reports false, close the progress bar <CODE> |
_onSuccess | Script to execute if the progress bar completed <CODE> |
_onFailure | Script to execute if the progress bar was aborted prematurely (optional, default: {}) <CODE> |
_arguments | Arguments passed to the scripts (optional, default: []) <ANY> |
_blockMouse | Block mouse input (optional, default: true) <BOOLEAN> |
_blockKeys | Block keyboard input requires _blockMouse to be set to true (optional, default: true) <BOOLEAN> |
_allowClose | Allow ESC key to abort the progress bar requires _blockMouse to be set to true (optional, default: true) <BOOLEAN> |
_this: #0 - same as _arguments <ANY> #1 - true: success, false: failure <BOOLEAN> #2 - elapsed time, not more than _totalTime <NUMBER> #3 - total time, same as _totalTime <NUMBER> #4 - failure code <NUMBER> 0 - no failure 1 - user hit ESC key 2 - condition was false 3 - progressbar closed by new progressbar
Nothing
["progress bar", 5, {true}, {hint "done"}, {hint "aborted"}] call CBA_fnc_progressBar;
commy2