CSimpleScrollFrame::SetVerticalScroll
function · ui · orchestration
- Address
0x786db0· 120 bytes, up to0x786e27- Meaning
- Stores a changed vertical offset as given, re-anchors the child and runs OnVerticalScroll
- Confidence
- verified, proof one
- Finding
- ui/scrollframe#offsets
- Test
ui::glue_786d30_display
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 1
Callees 4
- GetScaledScreenAspect screencoord
- DivideByScreenScaleX screencoord
- FrameScriptExecuteVarArgs ui
- CSimpleScrollFrame::AnchorScrollChild ui
Calls and jumps by a bare address, from tables/calls.tsv.