SimpleFrameScript_Scripts.cpp (7 Lua functions, register/unregister), CreateScriptMetaTable/DestroyScriptMetaTable, IsA, GetObjectTypeName and GetScriptMetaTable for 25 classes with their statics. CScriptRegion dtor, LoadXML, anim hooks and its 25 script methods; UnflattenFrame, DragBy, GetRectFramePoints (0x512410, name ours); CRenderBatch and the strata node; small CSimpleFrame/CSimpleTop/FontString/Texture/Font leaves. Anim-family, CSimpleTitleRegion and CSimpleMovieFrame headers rebuilt from the binary. Frame includes CSimpleModelFFX.h because 0x81B870 calls CSimpleModelFFX::CreateScriptMetaTable directly. Button/Checkbox IsA unchecked until the IDB splits 0x9621E0-0x962300. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
26 lines
783 B
C++
26 lines
783 B
C++
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Frame/CSimpleFontStringAttributes.h"
|
|
|
|
// VERIFY: ec752594 auto
|
|
// OFFSET: 0x00496390
|
|
void CSimpleFontStringAttributes::SetJustifyH(uint8_t justify) {
|
|
uint32_t styleFlags = (this->m_styleFlags & ~0x7u) | (justify & 0x7);
|
|
|
|
if (styleFlags != this->m_styleFlags || !(this->m_flags & 0x200)) {
|
|
this->m_flags |= 0x202;
|
|
this->m_styleFlags = styleFlags;
|
|
}
|
|
}
|
|
|
|
// VERIFY: 15b1ef9e auto
|
|
// OFFSET: 0x004963C0
|
|
void CSimpleFontStringAttributes::SetJustifyV(uint8_t justify) {
|
|
uint32_t styleFlags = (this->m_styleFlags & ~0x38u) | (justify & 0x38);
|
|
|
|
if (styleFlags != this->m_styleFlags || !(this->m_flags & 0x200)) {
|
|
this->m_flags |= 0x202;
|
|
this->m_styleFlags = styleFlags;
|
|
}
|
|
}
|