Constructor
# new DuProgressBar(title)
Constructs a progress bar popup
Parameters:
Name | Type | Description |
---|---|---|
title |
string
|
The title of the progress bar |
Methods
# addMax(maxValueopt)
Increments the maximum value
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
maxValue |
int
|
<optional> |
1 | The value to add to the maximum |
# 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 |
# msg(message)
Changes the text of the label
Parameters:
Name | Type | Description |
---|---|---|
message |
string
|
The text |
# reset(maxValueopt)
Resets the progress bar to 0
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
maxValue |
int
|
<optional> |
0 | The new maximum value |
# 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 |
# 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 |
# stg(message)
Changes the text of the current stage
Parameters:
Name | Type | Description |
---|---|---|
message |
string
|
The text |