24#include <guichan/widget.hpp>
40 int width = 40,
int height = 7,
46 void logic()
override;
72 void setColor(
const gcn::Color &color);
88 const std::string &
text()
const
void setSmoothColorChange(bool smoothColorChange)
Set whether the color changing is made smoothly.
void setProgress(float progress)
Sets the current progress.
const std::string & text() const
Returns the text shown on the progress bar.
void setText(const std::string &text)
Sets the text shown on the progress bar.
void setColor(const gcn::Color &color)
Change the color of the progress bar.
void draw(gcn::Graphics *graphics) override
Draws the progress bar.
const gcn::Color & getColor() const
Returns the color of the progress bar.
void setProgressPalette(int progressPalette)
Change the ProgressPalette for this ProgressBar to follow or -1 to disable this and manage color manu...
void setSmoothProgress(bool smoothProgress)
Set whether the progress is moved smoothly.
void logic() override
Performs progress bar logic (fading colors)
float getProgress() const
Returns the current progress.
gcn::Color mColor
< Entry in ProgressPalette or -1 for none.