31#include <guichan/widgets/label.hpp>
42 mIndicator = std::make_unique<SimpleAnimation>(std::move(anim));
57 const int x = (getWidth() - 32) / 2;
58 const int y = (getHeight() - 32) / 2;
An animation consists of several frames, each with their own delay and offset.
void addFrame(Image *image, int delay, int offsetX, int offsetY)
Appends a new animation at the end of the sequence.
A central point of control for graphics.
Theme * getTheme() const
The global GUI theme.
Image * get(size_t i) const
~ProgressIndicator() override
std::unique_ptr< SimpleAnimation > mIndicator
void draw(gcn::Graphics *graphics) override
ResourceRef< ImageSet > mImageSet
static ResourceManager * getInstance()
Returns an instance of the class, creating one if it does not already exist.
ResourceRef< ImageSet > getImageSet(const std::string &imagePath, int w, int h)
Loads a image set based on the image referenced by the given path and the supplied sprite sizes.
std::string resolvePath(const std::string &path) const
Returns the patch to the given GUI resource relative to the theme or, if it isn't in the theme,...
unsigned deltaTimeMs()
The time in milliseconds since the last frame, but never more than 1000.