Class: DuProgressBar

DuProgressBar

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

new DuProgressBar(title)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13001
Constructs a progress bar popup
Name Type Description
title string The title of the progress bar

Methods

addMax(maxValue)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13111
Increments the maximum value
Name Type Default Description
maxValue int 1 optional The value to add to the maximum

close()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13128
Closes the progress bar

hide()

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13120
Hides the progress bar

hit(value, message)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13087
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:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13042
Changes the text of the label
Name Type Description
message string The text

reset(maxValue)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13073
Resets the progress bar to 0
Name Type Default Description
maxValue int 0 optional The new maximum value

setMax(maxValue, onlyIfZero)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13099
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:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13063
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

stg(message)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 13052
Changes the text of the current stage
Name Type Description
message string The text