mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-23 14:45:38 +00:00
30 lines
623 B
C++
30 lines
623 B
C++
#pragma once
|
|
#ifndef ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|
|
#define ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|
|
|
|
#include "components/ComponentGrid.h"
|
|
#include "components/NinePatchComponent.h"
|
|
#include "GuiComponent.h"
|
|
|
|
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;
|
|
};
|
|
|
|
#endif // ES_CORE_COMPONENTS_BUSY_COMPONENT_H
|