Skip to content

PixelUI.LoadingRing

Extends: PixelUI.Widget

An animated loading ring indicator widget. Displays a rotating segmented ring for loading states.

Properties

NameTypeDescription
segmentCountintegerNumber of segments in the ring
thicknessintegerThickness of the ring in pixels
colorPixelUI.ColorPrimary color of the ring
secondaryColorPixelUI.Color?Optional secondary color for gradient effect
trailColorPixelUI.Color?Color for the trailing segments
tertiaryColorPixelUI.Color?Optional tertiary color
speednumberRotation speed multiplier
directionintegerRotation direction (1 or -1)
radiusPixelsinteger?Radius in pixels (auto-calculated if not set)
trailPalettePixelUI.Color[]?Array of colors for trail gradient
fadeStepsintegerNumber of fade steps for the trail
autoStartboolean?Whether to start animating automatically

Methods

new

lua
new()

_cancelTick

lua
_cancelTick()

_scheduleTick

lua
_scheduleTick()

start

lua
start()

stop

lua
stop()

setSpeed

lua
setSpeed()

setDirection

lua
setDirection()

setSegments

lua
setSegments()

setThickness

lua
setThickness()

setRadius

lua
setRadius()

setColor

lua
setColor()

setSecondaryColor

lua
setSecondaryColor()

setTertiaryColor

lua
setTertiaryColor()

setTrailColor

lua
setTrailColor()

setTrailPalette

lua
setTrailPalette()

setFadeSteps

lua
setFadeSteps()

_computeTrailColors

lua
_computeTrailColors()

draw

lua
draw()

handleEvent

lua
handleEvent()

Released under the MIT License.