benilla-re systems structs docs

ScrollFrame::SetScrollChild

function · ui · primitive

Address
0x790fa0 · 605 bytes, up to 0x7911fc
Signature
int __fastcall (lua_State *L)
Meaning
Implements the ScrollFrame method SetScrollChild, its pair in the table 0x87b3c0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/scrollframe#the-scroll-child

Finding: The scroll child in ui: ScrollFrame

SetScrollChild replaces the child, places the new one at the current offsets and marks the range. A nil child leaves the frame with no range to measure: the ranges keep their last values, and the range getters go on reporting them.

The range and the offsets are in different scales. The range is divided by the frame's scale; an offset is stored as given and becomes the child's anchor offset, which the layout multiplies by the child's own scale (anchors, Relative point coordinates). Only when the two scales are equal does SetVerticalScroll(GetVerticalScrollRange()) bring the child's bottom to the frame's bottom.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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