GUIProgress
new GUIProgress(id, options, guimanager, callback, append)
Creates a new GUIProgress
Parameters
Name | Type | Description |
---|---|---|
Name id | Type string | Description The id and name element |
Name options | Type json | Description Options of element |
Name guimanager | Type GUIManager | Description The gui manager |
Name callback | Type function | Description Trigger function by change (optional) |
Name append | Type bool | Description is added to the <body>. => True by default (optional) |
Options
- w: Width of progress bar (in pixel)
- h: Height of progress bar (in pixel)
- x: Position left of progress bar (in pixel)
- y: Position top of progress bar (in pixel)
- min: Min value progress bar => 0 by default (optional)
- max: Max value progress bar => 100 by default (optional)
- value: Current value of the progress bar => 0 by default (optional)
- border: Border of element => 0 by default (optional)
- borderRadius: Radius border of element => 5 by default (optional)
- background: Background progress bar => "rgba(0, 0, 0, 0.2)" by default (optional)
- backgroundValue: Background value progress bar => "#0f4fff" by default (optional)
- orient: Orientation of the progress bar => "horizontal" by default (optional)
- zIndex: Depth of the element (int) => 1 by default
- tabindex: Tab order of the field.
Methods
updateValue(int) → void
Set this progress value GUI element
getValue(int) → void
Get value progress GUI element
setVisible(bool, fade) → void
Set this GUI element to visible or invisible
isVisible() → void
Returns element if is visible or no
dispose() → void
Dispose the GUIProgress, and delete element.