2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-03-10 16:23:16 -08:00
|
|
|
|
2019-09-23 12:00:23 -07:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
|
2020-04-19 18:09:30 -07:00
|
|
|
#include "Runtime/GuiSys/CRasterFont.hpp"
|
2019-09-23 12:00:23 -07:00
|
|
|
|
|
|
|
#include <zeus/CColor.hpp>
|
2016-03-10 16:23:16 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
class CSaveableState {
|
|
|
|
friend class CColorOverrideInstruction;
|
|
|
|
friend class CFontInstruction;
|
2019-09-23 12:00:23 -07:00
|
|
|
friend class CGuiTextSupport;
|
2018-12-07 21:30:43 -08:00
|
|
|
friend class CLineExtraSpaceInstruction;
|
|
|
|
friend class CLineSpacingInstruction;
|
|
|
|
friend class CRemoveColorOverrideInstruction;
|
2019-09-23 12:00:23 -07:00
|
|
|
friend class CTextExecuteBuffer;
|
|
|
|
friend class CTextInstruction;
|
2018-12-07 21:30:43 -08:00
|
|
|
friend class CWordInstruction;
|
|
|
|
|
2016-03-18 17:07:31 -07:00
|
|
|
protected:
|
2018-12-07 21:30:43 -08:00
|
|
|
CDrawStringOptions x0_drawStrOpts;
|
|
|
|
TLockedToken<CRasterFont> x48_font;
|
|
|
|
std::vector<CTextColor> x54_colors;
|
|
|
|
std::vector<bool> x64_colorOverrides;
|
|
|
|
float x74_lineSpacing = 1.f;
|
|
|
|
s32 x78_extraLineSpace = 0;
|
|
|
|
bool x7c_enableWordWrap = false;
|
|
|
|
EJustification x80_just = EJustification::Left;
|
|
|
|
EVerticalJustification x84_vjust = EVerticalJustification::Top;
|
2016-03-10 16:23:16 -08:00
|
|
|
|
2016-03-18 17:07:31 -07:00
|
|
|
public:
|
2020-03-06 19:47:36 -08:00
|
|
|
CSaveableState() : x54_colors(3, zeus::skBlack), x64_colorOverrides(16) {}
|
2020-05-03 19:27:48 -07:00
|
|
|
const TLockedToken<CRasterFont>& GetFont() const { return x48_font; }
|
2017-01-29 20:16:20 -08:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
bool IsFinishedLoading() const;
|
2016-03-10 16:23:16 -08:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|