Class UI.ProgressBar

UI Progress Bar class.

For drawing progress bars.

Data Structures

.progressBarFlexibleBarOption Progress Bar's flexible bar options.
.progressBarOption Progress Bar options.

Fields

UI.ProgressBar._base The base class.
UI.ProgressBar._parent The parent class.
UI.ProgressBar.bar The flexible bar.

Methods

UI.ProgressBar:Create () Creates a progress bar.
UI.ProgressBar:Show () Shows this progress bar to the screen.
UI.ProgressBar:Hide () Hides this progress bar from the screen.
UI.ProgressBar:IsVisible () Checks whether this progress bar is visible on the screen.
UI.ProgressBar:Set (arg) Sets this progress bar's options.
UI.ProgressBar:Get () Gets this progress bar's options.

Metamethods

UI.ProgressBar.__index Base class.


Data Structures

.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)

Fields

UI.ProgressBar._base
The base class.
  • _base UI.Box
UI.ProgressBar._parent
The parent class.
UI.ProgressBar.bar
The flexible bar.
  • bar UI.Box

Methods

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.

Metamethods

UI.ProgressBar.__index
Base class.
generated by LDoc 1.4.6 Last updated 2020-06-15 21:15:36