benilla-re systems structs docs

ScrollFrame::SetHorizontalScroll

function · ui · primitive

Address
0x7912f0 · 262 bytes, up to 0x7913f5
Signature
int __fastcall (lua_State *L)
Meaning
Implements the ScrollFrame method SetHorizontalScroll, its pair in the table 0x87b3c0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/scrollframe#offsets
Test
ui::luabind_791_setters

Finding: Offsets in ui: ScrollFrame

Setting an offset stores it as given, with no clamp, when it differs from the current one by 2^−22 or more; it then anchors the child's TOPLEFT to the frame's TOPLEFT at the horizontal offset across and the vertical offset up, and runs OnHorizontalScroll or OnVerticalScroll with the offset in script units. A nearly equal offset does nothing, script included. The Lua setters and getters convert between script units and the layout units the fields hold, v·K1 / (1024·A) on the way in and its inverse on the way out (glue/script, Cursor and screen size).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 10

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