benilla-re systems structs docs

SeatWorldTextRect

function · ui · primitive

Address
0x509520 · 313 bytes, up to 0x509658
Meaning
Clamps a rectangle's seat on the viewport from its half extents
Confidence
verified, proof one
Finding
ui/smartrect#the-combat-text-seat
Test
ui::glue_509_509520_viewport_clamp

Finding: The combat text seat in ui: the screen rectangle placement

A combat number is seated the same way against list 1: the rectangle is the string's half extents around its clamped screen point, normalised, searched, clamped in the same bounds, claimed, and the string is positioned at the centre of the returned rectangle. The call is made every frame for each string with no option gate, and an off-screen string is destroyed by its caller before it gets here.

The derivation is in the doc.

Callers 1

Callees 5

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