CSimpleFontString::SetLayoutScale
function · ui · orchestration
- Address
0x772ca0· 122 bytes, up to0x772d19- Signature
uint32_t __thiscall (CSimpleFontString *this, float scale, uint32_t force)- Meaning
- Sets the layout scale and reloads the font at the stored height when it was accepted
- Confidence
- verified, proof one
- Finding
- ui/fonttext#layout-slots-of-a-font-string
Finding: Layout slots of a font string in ui: font string internals
The font string's layout vtable replaces slots 4 to 6. 0x772ca0(scale, force) is slot 4: it sets the layout scale with
CLayoutFrame::SetLayoutScale and returns 0 when that refuses it; otherwise, with a font built, it copies the font path to a
1,024-byte stack buffer and calls 0x7714f0 with the same path, flags and the stored height, and returns 1. 0x772830(w) and
0x772860(h) are slots 5 and 6: they set the width or height and zero the measures +0xd8 and +0xdc of the layout part.
Main slot 9, 0x772d20, zeroes the text measures +0xfc, +0x100 and calls Resize(0).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- SStrCopy storm
- CLayoutFrame::SetLayoutScale ui
- CSimpleFontString::SetFont ui
- CSimpleFontString::GetFontPath ui
- CSimpleFontString::GetTextHeight ui
- CSimpleFontString::GetFontFlags ui
Calls and jumps by a bare address, from tables/calls.tsv.