CSimpleFontString::SetFixedLength
function · ui · orchestration
- Address
0x771680· 102 bytes, up to0x7716e5- Signature
void __thiscall (CSimpleFontString *this, uint32_t length)- Meaning
- Sets the fixed text size and allocates an empty text buffer of that size plus one
- Confidence
- verified, proof one
- Finding
- ui/fonttext#creating-and-freeing-a-string
Finding: Creating and freeing a string in ui: font string internals
0x770e50 is the string's destructor body: it frees the text +0xf0, calls SetFont(0, 0, 0, 0), UnlockScriptObject(0), decrements
the string count 0xcf1cc4, unlinks the font part from its font (0x770c60(0)) and ends in the region destructor 0x77f6f0. 0x770e20 is the deleting form:
with bit 0 of its flag it returns the object to the block pool at 0xcf4d10 through CDataAllocator::PutData. 0x771680(n) sets the fixed text
size +0xe8: a nonzero n different from the current one allocates an n + 1-byte text buffer from CSimpleRender.cpp line
863, writes a 0 first byte, frees the old buffer and stores n at +0xec. 0x770f10(node, region) reads the XML attribute name and
sets it as the region's name when nonempty.
The derivation is in the doc.
Callers 5
- CSimpleFontString::LoadXML ui
- CSimpleMessageFrame::SetFixedLength ui
- CSimpleMessageFrame::LayoutLines ui
- CSimpleMessageScrollFrame::SetFixedLength ui
- CSimpleMessageScrollFrame::LayoutLines ui
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.