Files
wowdecomp/Engine/Source/Frame/CSimpleFontable.cpp
T
SatyandClaude Opus 5.5 34770ee7ab Frame: port Engine/Frame (waves 1-4), 1667 of 1669 functions
Core (CSimpleFrame + Lua, CSimpleTop/CFrameStrata/CSimpleRender/
CRenderBatch, CSimpleRegion/CBackdropGenerator/CScriptRegion), animation,
text (FontString/Font/Fontable), texture and model, buttons, EditBox,
MessageFrame/MessageScrollFrame, MovieFrame/ColorSelect/StatusBar,
Slider/ScrollFrame/HTML/HyperlinkedFrame, all Lua method tables and
RegisterScriptMethods. Layouts, vtables and sizes rebuilt from the
12340 ctors, vtables and allocator initializers; CScriptObject vtable
slots 5/6 fixed; CSimpleFontedFrame is a real secondary base. Lua error
paths return after luaL_error as in 12340 (209 sites; 5 fall through).
Binary quirks kept and documented in docs/.

Supporting additions: Event key/char/ime/focus/size event headers,
Scrn/Scrn.h (ScrnLayerCreate), DivxDecoder import declarations,
C2Vector/CRect helpers, CM2Light dtor, OsInputEnableSecureMode, stpl.h
instance addresses, FrameXML LoadXML_AnimGroup/Create_SimpleMovieFrame.
Engine->WoW includes where 12340 calls directly: CSimpleModelFFX,
StringToMouseButton, GetDeclinedWord, EmblemTextureUpdate.

Also drops stale VERIFY stamps found invalid by the harness recheck.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 15:32:18 +02:00

38 lines
886 B
C++

#include <cstddef>
#include <cstdint>
#include "Engine/Source/Frame/CSimpleFontable.h"
#include "Engine/Source/Frame/CSimpleFont.h"
// INLINED
CSimpleFontable::CSimpleFontable() {
this->m_fontableFlags = 0x1F;
this->m_fontObject = nullptr;
}
// VERIFY: 85bbcb87 auto
// OFFSET: [0x004851B0, 0x00485210]
CSimpleFontable::~CSimpleFontable() {
this->SetFontObject(nullptr);
}
// VERIFY: c87fff35 auto
// OFFSET: 0x00485160
void CSimpleFontable::SetFontObject(CSimpleFont* font) {
if (this->m_fontObject == font) {
return;
}
if (this->m_fontObject) {
this->m_fontObject->RemoveFontable(this);
}
this->m_fontObject = font;
if (font) {
font->m_fontableList.LinkToTail(this);
font->m_attributes.m_flags |= 0x1F;
this->FontObjectUpdated(font->m_attributes);
font->m_attributes.m_flags &= ~0x1Fu;
}
}