metaforce/Runtime/GuiSys/CSaveableState.hpp

43 lines
1.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-03-11 00:23:16 +00:00
2016-03-19 00:07:31 +00:00
#include "CGuiTextSupport.hpp"
2016-03-11 00:23:16 +00:00
#include "CDrawStringOptions.hpp"
#include "CToken.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 CTextExecuteBuffer;
friend class CColorOverrideInstruction;
friend class CFontInstruction;
friend class CLineExtraSpaceInstruction;
friend class CTextInstruction;
friend class CLineSpacingInstruction;
friend class CRemoveColorOverrideInstruction;
friend class CWordInstruction;
friend class CGuiTextSupport;
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() {
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