metaforce/Runtime/GuiSys/CSaveableState.hpp

41 lines
828 B
C++
Raw Normal View History

2016-03-11 00:23:16 +00:00
#ifndef __URDE_CSAVEABLESTATE_HPP__
#define __URDE_CSAVEABLESTATE_HPP__
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
namespace urde
{
class CRasterFont;
class CSaveableState
{
2016-03-19 03:58:01 +00:00
friend class CTextExecuteBuffer;
2016-03-19 00:07:31 +00:00
friend class CColorOverrideInstruction;
2016-03-19 03:58:01 +00:00
friend class CFontInstruction;
friend class CExtraLineSpaceInstruction;
2016-03-19 00:07:31 +00:00
protected:
2016-03-11 00:23:16 +00:00
CDrawStringOptions x0_drawStrOpts;
TToken<CRasterFont> x14_token;
2016-03-19 00:07:31 +00:00
std::vector<CTextColor> x20_;
std::vector<bool> x30_;
2016-03-11 00:23:16 +00:00
float x40_ = 1.f;
2016-03-19 03:58:01 +00:00
s32 x44_extraLineSpace = 0;
2016-03-11 00:23:16 +00:00
bool x48_ = false;
u32 x4c_ = 0;
u32 x50_ = 0;
2016-03-19 00:07:31 +00:00
public:
2016-03-11 00:23:16 +00:00
CSaveableState()
{
x20_.resize(3, zeus::CColor::skBlack);
2016-03-11 00:23:16 +00:00
x30_.resize(16);
}
};
}
#endif // __URDE_CSAVEABLESTATE_HPP__