Class UI.ProgressBar
UI Progress Bar class.
For drawing progress bars.
-
.progressBarFlexibleBarOption
-
Progress Bar's flexible bar options.
- percent
number
Progress percentage (Range = 0~1).
(optional)
- r
integer
Red color composition (Range = 0~255).
(optional)
- g
integer
Green color composition (Range = 0~255).
(optional)
- b
integer
Blue color composition (Range = 0~255).
(optional)
- a
integer
Transparency (Range = 0~255).
(default 255)
-
.progressBarOption
-
Progress Bar options.
- ...
.rectangleOption
All rectangle options are applied here.
(optional)
- bar
.progressBarFlexibleBarOption
The bar options.
(optional)
-
UI.ProgressBar._base
-
The base class.
-
UI.ProgressBar._parent
-
The parent class.
-
UI.ProgressBar.bar
-
The flexible bar.
-
UI.ProgressBar:Create ()
-
Creates a progress bar.
Returns:
UI.ProgressBar
This progress bar.
-
UI.ProgressBar:Show ()
-
Shows this progress bar to the screen.
Returns:
UI.ProgressBar
This progress bar.
-
UI.ProgressBar:Hide ()
-
Hides this progress bar from the screen.
Returns:
UI.ProgressBar
This progress bar.
-
UI.ProgressBar:IsVisible ()
-
Checks whether this progress bar is visible on the screen.
Returns:
bool
Returns true
if visible.
-
UI.ProgressBar:Set (arg)
-
Sets this progress bar's options.
Parameters:
- arg
.progressBarOption
The progress bar options to set.
Returns:
UI.ProgressBar
This progress bar.
-
UI.ProgressBar:Get ()
-
Gets this progress bar's options.
Returns:
.progressBarOption
The options table.
-
UI.ProgressBar.__index
-
Base class.