2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-03-19 00:07:31 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <list>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
|
|
|
|
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
|
|
|
|
#include "Runtime/GuiSys/CSaveableState.hpp"
|
2016-03-19 00:07:31 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-03-20 06:37:08 +00:00
|
|
|
class CBlockInstruction;
|
2019-09-22 21:52:05 +00:00
|
|
|
class CLineInstruction;
|
2016-03-19 00:07:31 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CFontRenderState : public CSaveableState {
|
|
|
|
friend class CBlockInstruction;
|
|
|
|
friend class CImageInstruction;
|
2019-09-22 21:52:05 +00:00
|
|
|
friend class CLineInstruction;
|
|
|
|
friend class CTextInstruction;
|
2018-12-08 05:30:43 +00:00
|
|
|
friend class CWordInstruction;
|
|
|
|
|
|
|
|
CBlockInstruction* x88_curBlock = nullptr;
|
|
|
|
CDrawStringOptions x8c_drawOpts;
|
|
|
|
s32 xd4_curX = 0;
|
|
|
|
s32 xd8_curY = 0;
|
|
|
|
const CLineInstruction* xdc_currentLineInst = nullptr;
|
|
|
|
std::vector<u32> xe8_;
|
|
|
|
std::vector<u8> xf8_;
|
|
|
|
bool x108_lineInitialized = true;
|
|
|
|
std::list<CSaveableState> x10c_pushedStates;
|
2016-03-19 03:58:01 +00:00
|
|
|
|
2016-03-19 00:07:31 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CFontRenderState();
|
|
|
|
zeus::CColor ConvertToTextureSpace(const CTextColor& col) const;
|
|
|
|
void PopState();
|
|
|
|
void PushState();
|
|
|
|
void SetColor(EColorType tp, const CTextColor& col);
|
|
|
|
void RefreshPalette();
|
|
|
|
void RefreshColor(EColorType tp);
|
2016-03-19 00:07:31 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|