Class

DuProgressBar

DuProgressBar(title)

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

# new DuProgressBar(title)

Constructs a progress bar popup
Parameters:
Name Type Description
title string The title of the progress bar

View Source DuAEF_Duik_api.jsxinc, line 13127

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_Duik_api.jsxinc, line 13238

# close()

Closes the progress bar

View Source DuAEF_Duik_api.jsxinc, line 13255

# hide()

Hides the progress bar

View Source DuAEF_Duik_api.jsxinc, line 13247

# 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_Duik_api.jsxinc, line 13214

# msg(message)

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

View Source DuAEF_Duik_api.jsxinc, line 13169

# reset(maxValueopt)

Resets the progress bar to 0
Parameters:
Name Type Attributes Default Description
maxValue int <optional>
0 The new maximum value

View Source DuAEF_Duik_api.jsxinc, line 13200

# 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_Duik_api.jsxinc, line 13226

# 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_Duik_api.jsxinc, line 13190

# stg(message)

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

View Source DuAEF_Duik_api.jsxinc, line 13179