Class ProgressBar

#include <Geode/ui/ProgressBar.hpp>
classProgressBar:publiccocos2d::CCNode{ ... }
No description provided
Examples0
Public static methods1
staticgeode::ProgressBar*create()

Create a custom progress bar

Parameters

style

Style of the progress bar
Public member functions10
voidsetStyle()

Set the style of the progress bar

Parameters

style

Style to switch to
voidsetFillColor()

Set the color of the fill of the bar

Parameters

color

RGB color object
voidsetPrecision(
size_tprecision
)

Set the precision of the percentage label

Parameters

precision

Number of decimal places to show in the percentage label
virtualvoidupdateProgress(
floatvalue
)

Update the size of the fill of the bar

Parameters

value

A float from 0 to 100
voidshowProgressLabel(
boolshow
)

Show the label displaying the current percentage of progress

Parameters

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

Fields0
Protected member functions2
voidreloadStyle()
No description provided
boolinit()
No description provided
Protected fields0
Derived classes0