GameTooltipSize
function · ui · primitive
- Address
0x530640· 1054 bytes, up to0x530a5d- 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
- CGTooltip::OnLockKeyItem ui
- CGTooltip::OnCorpseOwnerName ui
- CGTooltip::OnCacheAnswer ui
- CGTooltip::OnSpellItemAnswer ui
- CGTooltip::AppendText ui
- CGTooltip::ShowEffective ui
Callees 9
- GetScaledScreenAspect screencoord
- MultiplyByScreenScaleX screencoord
- GameTooltipAnchor ui
- SStrLen storm
- CLayoutFrame::SetPoint ui
- CLayoutFrame::Resize ui
- CSimpleFontString::GetCachedWidth ui
- MeasureRunWidth ui
- CSimpleFontString::WrapText ui
Calls and jumps by a bare address, from tables/calls.tsv.