2017-10-31 17:12:50 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|
|
|
|
#define ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|
|
|
|
|
2014-06-20 01:30:09 +00:00
|
|
|
#include "GuiComponent.h"
|
|
|
|
#include "components/ComponentGrid.h"
|
|
|
|
#include "components/NinePatchComponent.h"
|
2014-04-19 18:37:10 +00:00
|
|
|
|
|
|
|
class AnimatedImageComponent;
|
|
|
|
class TextComponent;
|
|
|
|
|
|
|
|
class BusyComponent : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BusyComponent(Window* window);
|
|
|
|
|
|
|
|
void onSizeChanged() override;
|
|
|
|
|
|
|
|
void reset(); // reset to frame 0
|
|
|
|
|
|
|
|
private:
|
|
|
|
NinePatchComponent mBackground;
|
|
|
|
ComponentGrid mGrid;
|
|
|
|
|
|
|
|
std::shared_ptr<AnimatedImageComponent> mAnimation;
|
|
|
|
std::shared_ptr<TextComponent> mText;
|
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|