1#pragma once
2
3#include <gfx/seadColor.h>
4#include <math/seadVector.h>
5
6#include "Library/Layout/LayoutActor.h"
7
8namespace al {
9struct ActorInitInfo;
10class LayoutInitInfo;
11
12class SimpleLayoutText : public LayoutActor {
13public:
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
29private:
30 s32 mLifetime = -1;
31 const char* mPaneName;
32};
33
34SimpleLayoutText* createSimpleLayoutText(const ActorInitInfo& info, const char* name,
35 const char* paneName, const char* archiveName);
36} // namespace al
37