mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 22:27:41 +00:00
More field discoveries and imps
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "CInstruction.hpp"
|
||||
#include "CFontRenderState.hpp"
|
||||
#include "CTextRenderBuffer.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
@@ -25,4 +26,41 @@ void CColorOverrideInstruction::Invoke(CFontRenderState& state, CTextRenderBuffe
|
||||
state.x0_drawStrOpts.x4_vec[x4_overrideIdx] = convCol;
|
||||
}
|
||||
|
||||
void CFontInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
|
||||
{
|
||||
buf->AddFontChange(x4_font);
|
||||
state.x14_token = x4_font;
|
||||
state.RefreshPalette();
|
||||
}
|
||||
|
||||
void CFontInstruction::GetAssets(std::vector<CToken>& assetsOut) const
|
||||
{
|
||||
assetsOut.push_back(x4_font);
|
||||
}
|
||||
|
||||
size_t CFontInstruction::GetAssetCount() const
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
void CExtraLineSpaceInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
|
||||
{
|
||||
state.x44_extraLineSpace = x4_extraSpace;
|
||||
}
|
||||
|
||||
void CLineInstruction::TestLargestFont(int, int, int)
|
||||
{
|
||||
}
|
||||
|
||||
void CLineInstruction::InvokeLTR(CFontRenderState& state) const
|
||||
{
|
||||
}
|
||||
|
||||
void CLineInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const
|
||||
{
|
||||
InvokeLTR(state);
|
||||
state.xa0_ = true;
|
||||
state.x74_currentLineInst = this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user