mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Added support for changing the BusyComponent text dynamically
This commit is contained in:
parent
32db3d78b1
commit
0939e5f05b
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#include "components/AnimatedImageComponent.h"
|
#include "components/AnimatedImageComponent.h"
|
||||||
#include "components/ImageComponent.h"
|
#include "components/ImageComponent.h"
|
||||||
#include "components/TextComponent.h"
|
|
||||||
|
|
||||||
// Animation definition.
|
// Animation definition.
|
||||||
AnimationFrame BUSY_ANIMATION_FRAMES[] {
|
AnimationFrame BUSY_ANIMATION_FRAMES[] {
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include "GuiComponent.h"
|
#include "GuiComponent.h"
|
||||||
#include "components/ComponentGrid.h"
|
#include "components/ComponentGrid.h"
|
||||||
#include "components/NinePatchComponent.h"
|
#include "components/NinePatchComponent.h"
|
||||||
|
#include "components/TextComponent.h"
|
||||||
|
|
||||||
class AnimatedImageComponent;
|
class AnimatedImageComponent;
|
||||||
class TextComponent;
|
class TextComponent;
|
||||||
|
@ -21,6 +22,7 @@ class BusyComponent : public GuiComponent
|
||||||
public:
|
public:
|
||||||
BusyComponent();
|
BusyComponent();
|
||||||
|
|
||||||
|
void setText(const std::string& text) { mText->setText(text, true); }
|
||||||
void onSizeChanged() override;
|
void onSizeChanged() override;
|
||||||
|
|
||||||
void reset(); // Reset to frame 0.
|
void reset(); // Reset to frame 0.
|
||||||
|
|
Loading…
Reference in a new issue