2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-03-11 00:23:16 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CColor.hpp>
|
2016-03-11 00:23:16 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-03-11 00:23:16 +00:00
|
|
|
class CRasterFont;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CSaveableState {
|
|
|
|
friend class CColorOverrideInstruction;
|
|
|
|
friend class CFontInstruction;
|
2019-09-23 19:00:23 +00:00
|
|
|
friend class CGuiTextSupport;
|
2018-12-08 05:30:43 +00:00
|
|
|
friend class CLineExtraSpaceInstruction;
|
|
|
|
friend class CLineSpacingInstruction;
|
|
|
|
friend class CRemoveColorOverrideInstruction;
|
2019-09-23 19:00:23 +00:00
|
|
|
friend class CTextExecuteBuffer;
|
|
|
|
friend class CTextInstruction;
|
2018-12-08 05:30:43 +00:00
|
|
|
friend class CWordInstruction;
|
|
|
|
|
2016-03-19 00:07:31 +00:00
|
|
|
protected:
|
2018-12-08 05:30:43 +00: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-11 00:23:16 +00:00
|
|
|
|
2016-03-19 00:07:31 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CSaveableState() {
|
2019-02-24 07:15:54 +00:00
|
|
|
x54_colors.resize(3, zeus::skBlack);
|
2018-12-08 05:30:43 +00:00
|
|
|
x64_colorOverrides.resize(16);
|
|
|
|
}
|
2017-01-30 04:16:20 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
bool IsFinishedLoading() const;
|
2016-03-11 00:23:16 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|