Files
Basalt/docs/objects/Progressbar.md
Robert Jelic 1d3e2018ef docs update
Updated some docs stuff
2022-10-09 12:05:30 +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