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_DuSan_api.jsxinc, line 13132

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_DuSan_api.jsxinc, line 13243

# close()

Closes the progress bar

View Source DuAEF_DuSan_api.jsxinc, line 13260

# hide()

Hides the progress bar

View Source DuAEF_DuSan_api.jsxinc, line 13252

# 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_DuSan_api.jsxinc, line 13219

# msg(message)

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

View Source DuAEF_DuSan_api.jsxinc, line 13174

# 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_DuSan_api.jsxinc, line 13205

# 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_DuSan_api.jsxinc, line 13231

# 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_DuSan_api.jsxinc, line 13195

# stg(message)

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

View Source DuAEF_DuSan_api.jsxinc, line 13184