| 1 | #pragma once |
| 2 | |
| 3 | #include <gfx/seadColor.h> |
| 4 | #include <math/seadVector.h> |
| 5 | |
| 6 | #include "Library/Layout/LayoutActor.h" |
| 7 | |
| 8 | namespace al { |
| 9 | struct ActorInitInfo; |
| 10 | class LayoutInitInfo; |
| 11 | |
| 12 | class SimpleLayoutText : public LayoutActor { |
| 13 | public: |
| 14 | SimpleLayoutText(const LayoutInitInfo& info, const char* name, const char* paneName, |
| 15 | const char* archiveName); |
| 16 | |
| 17 | void start(const sead::Vector2f& pos, const char* str, s32 lifetime); |
| 18 | void setPos(const sead::Vector2f& pos); |
| 19 | void setText(const char* text); |
| 20 | void start(const sead::Vector2f& pos, const char16* str, s32 lifetime); |
| 21 | void setText(const char16* str); |
| 22 | void start(const sead::Vector2f& pos, const char* category, const char* key, s32 lifetime); |
| 23 | void setScale(f32 scale); |
| 24 | void setColor(const sead::Color4u8& color); |
| 25 | void setPositionCenterH(); |
| 26 | |
| 27 | void exeWait(); |
| 28 | |
| 29 | private: |
| 30 | s32 mLifetime = -1; |
| 31 | const char* mPaneName; |
| 32 | }; |
| 33 | |
| 34 | SimpleLayoutText* createSimpleLayoutText(const ActorInitInfo& info, const char* name, |
| 35 | const char* paneName, const char* archiveName); |
| 36 | } // namespace al |
| 37 | |