Class: DuProgressBar

DuProgressBar

A simple progress bar.
This was inspired by the progress bar by Marc Autret / IndiScripts.

new DuProgressBar(title)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 11956
Constructs a progress bar popup
Name Type Description
title string The title of the progress bar

Methods

addMax(maxValue)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12062
Increments the maximum value
Name Type Default Description
maxValue int 1 optional The value to add to the maximum

close()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12079
Closes the progress bar

hide()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12071
Hides the progress bar

hit(value, message)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12038
Updates and increments the progress bar
Name Type Description
value int optional The new value. if omitted, the bar is just incremented by 1
message string optional A new label

msg(message)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 11997
Changes the text of the label
Name Type Description
message string The text

reset(maxValue)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12024
Resets the progress bar to 0
Name Type Default Description
maxValue int 0 optional The new maximum value

setMax(maxValue, onlyIfZero)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12050
Sets the maximum value
Name Type Default Description
maxValue int The new maximum value
onlyIfZero Boolean true optional Set to false to change the max value even if it was not 0 before

show(message, maxValue)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12014
Shows the progress bar and updates the value and text
Name Type Default Description
message string '' optional The text
maxValue int 100 optional The maximum value