mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05: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/ImageComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
|
||||
// Animation definition.
|
||||
AnimationFrame BUSY_ANIMATION_FRAMES[] {
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "GuiComponent.h"
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
|
||||
class AnimatedImageComponent;
|
||||
class TextComponent;
|
||||
|
@ -21,6 +22,7 @@ class BusyComponent : public GuiComponent
|
|||
public:
|
||||
BusyComponent();
|
||||
|
||||
void setText(const std::string& text) { mText->setText(text, true); }
|
||||
void onSizeChanged() override;
|
||||
|
||||
void reset(); // Reset to frame 0.
|
||||
|
|
Loading…
Reference in a new issue