Create a custom progress bar
Class ProgressBar
#include <Geode/ui/ProgressBar.hpp>classProgressBar:publiccocos2d::CCNode{ ... }
No description provided
Examples0
Public static methods1
staticgeode::ProgressBar*create()
style
Style of the progress bar
Public member functions10
voidsetStyle()
Set the style of the progress bar
style
Style to switch to
voidsetFillColor(cocos2d::ccColor3Bcolor)
Set the color of the fill of the bar
color
RGB color object
voidsetPrecision(size_tprecision)
Set the precision of the percentage label
precision
Number of decimal places to show in the percentage label
virtualvoidupdateProgress(floatvalue)
Update the size of the fill of the bar
value
A float from 0 to 100
voidshowProgressLabel(boolshow)
Show the label displaying the current percentage of progress
bool
Whether to toggle visibility
floatgetProgress()const
Get the current progress percentage of the bar
cocos2d::CCLabelBMFont*getProgressLabel()const
Get the progress percentage text label node
geode::ProgressBarStylegetStyle()const
Get the current style of the progress bar
cocos2d::ccColor3BgetFillColor()const
Get the current color of the fill of the progress bar
size_tgetPrecision()const
Get the precision of the percentage label