Skip to content

PixelUI.ProgressBar

Extends: PixelUI.Widget

A progress indicator widget showing completion status. Supports determinate and indeterminate modes with optional labels.

Properties

NameTypeDescription
valuenumberCurrent progress value
minnumberMinimum progress value
maxnumberMaximum progress value
indeterminatebooleanWhether to show an animated indeterminate state
labelstring?Optional label text to display
showPercentbooleanWhether to show percentage text
trackColorPixelUI.ColorBackground track color
fillColorPixelUI.ColorForeground fill color
textColorPixelUI.ColorColor for text (label and percentage)

Methods

new

lua
new()

_clampValue

lua
_clampValue()

_stopIndeterminateAnimation

lua
_stopIndeterminateAnimation()

_startIndeterminateAnimation

lua
_startIndeterminateAnimation()

setRange

lua
setRange()

getRange

lua
getRange()

setValue

lua
setValue()

getValue

lua
getValue()

getPercent

lua
getPercent()

setIndeterminate

lua
setIndeterminate()

isIndeterminate

lua
isIndeterminate()

setLabel

lua
setLabel()

setShowPercent

lua
setShowPercent()

setColors

lua
setColors()

draw

lua
draw()

handleEvent

lua
handleEvent()

Released under the MIT License.