Skip to content

ProgressBar

This is the progress bar class. It provides a visual representation of progresswith optional percentage display and customizable colors.

Extends: VisualElement

Usage

lua
local progressBar = main:addProgressBar()
progressBar:setDirection("up") 
progressBar:setProgress(50)

Properties

PropertyTypeDefaultDescription
progressnumber0Current progress value (0-100)
showPercentagebooleanfalseWhether to show the percentage text in the center
progressColorcolorlimeThe color used for the filled portion of the progress bar
directionstringrightThe direction of the progress bar ("up", "down", "left", "right")

Released under the MIT License.