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

927 B

Progressbars are objects to visually display the current state of your progression. They always go from 0 to 100 (%) - no matter how big they are. which means if you want to add some energy progress you have to do simple maths: currentValue / maxValue * 100

Object methods also apply for progressbars.

setDirection Sets the progress direction
setProgress Sets the current progress
getProgress Returns the current progress
setProgressBar Changes the progress design
setBackgroundSymbol Sets the background symbol

Events

This is a list of all available events for progressbars:

onDone Fires when a progress has finished