Files
Basalt/docs/docs1_6/objects/Progressbar/setProgress.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

390 B

setProgress

This is the function you need to call if you want the progression to change.

Parameters:

  1. number a number from 0 to 100

Returns:

  1. object The object in use

Usage:

  • Creates a progressbar and sets the current progress to 50
local mainFrame = basalt.createFrame()
local aProgressbar = mainFrame:addProgressbar()
aProgressbar:setProgress(50)