Class

DuProgressBar

DuProgressBar(titleopt, containeropt)

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

# new DuProgressBar(titleopt, containeropt)

Constructs a progress bar popup
Parameters:
Name Type Attributes Default Description
title string <optional>
"Magic is happening" The title of the progress bar
container Group <optional>
A ScriptUI Group to add the progress bar. If not provided, the bar will be added in a new window popup

View Source DuAEF_DuGR_api.jsxinc, line 13456

Methods

# addMax(maxValueopt)

Increments the maximum value
Parameters:
Name Type Attributes Default Description
maxValue int <optional>
1 The value to add to the maximum

View Source DuAEF_DuGR_api.jsxinc, line 13628

# close()

Closes the progress bar

View Source DuAEF_DuGR_api.jsxinc, line 13649

# hide()

Hides the progress bar

View Source DuAEF_DuGR_api.jsxinc, line 13638

# hit(valueopt, messageopt)

Updates and increments the progress bar
Parameters:
Name Type Attributes Description
value int <optional>
The new value. if omitted, the bar is just incremented by 1
message string <optional>
A new label

View Source DuAEF_DuGR_api.jsxinc, line 13602

# msg(message)

Changes the text of the label
Parameters:
Name Type Description
message string The text

View Source DuAEF_DuGR_api.jsxinc, line 13556

# reset()

Hides and resets the progress bar to 0 and default texts

View Source DuAEF_DuGR_api.jsxinc, line 13590

# setMax(maxValue, onlyIfZeroopt)

Sets the maximum value
Parameters:
Name Type Attributes Default Description
maxValue int The new maximum value
onlyIfZero Boolean <optional>
true Set to false to change the max value even if it was not 0 before

View Source DuAEF_DuGR_api.jsxinc, line 13615

# show(messageopt, maxValueopt)

Shows the progress bar and updates the value and text
Parameters:
Name Type Attributes Default Description
message string <optional>
'' The text
maxValue int <optional>
100 The maximum value

View Source DuAEF_DuGR_api.jsxinc, line 13579

# stg(message)

Changes the text of the current stage
Parameters:
Name Type Description
message string The text

View Source DuAEF_DuGR_api.jsxinc, line 13567