benilla-re systems structs docs

GameTooltipSize

function · ui · primitive

Address
0x530640 · 1054 bytes, up to 0x530a5d
Signature
void __thiscall (void *this)
Meaning
Sizes the plate from its lines, padding and wrap limit, then re-anchors it
Confidence
verified, proof one
Finding
ui/tooltipcontent#sizing-the-tooltip
Test
ui::layout_pass_530640

Finding: Sizing the tooltip in ui: Tooltip lines, colours and sizing

The plate is as wide as its widest line plus twice 10.24 units and the padding, and as tall as the sum of its left lines' heights plus a gap of 2.0 units between shown lines and twice 10.24 units. A single line's width is its left text, its right text and, when both exist, a gap of 38.4 units; a wrapped line is limited to 230.4 units and the plate widens to the longest of its pieces. The minimum width is a floor. The right texts are then anchored at the widest line's width. All lengths are FrameXML units converted to layout units.

The derivation is in the doc.

Callers 6

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.