API:VerticalScrollbarSetLineSize
From RoR Wiki
UI Lua API · Scrollbar functions
Version: WAR 1.4.8
Meant to set the line size of a VerticalScrollbar. In the current client it sets the page size instead. See Details.
VerticalScrollbarSetLineSize(scrollbarName, size)
Arguments
- scrollbarName
string– Name of the VerticalScrollbar.- size
number– The value to store.
Returns
Nothing.
Details
- The client passes the arguments to the scrollbar in the wrong order:
sizebecomes the page size (returned by VerticalScrollbarGetPageSize).- The line size is set to the page size the scrollbar had before the call.
- If
sizeis larger than the maximum scroll position, the maximum is raised tosize.
- To set the line size, use VerticalScrollbarSetPageSize, which has the opposite mix-up. See that page for a call order that sets both values.
- The thumb is recalculated and the current position is clamped again. If that moves the position, the
OnScrollPosChangedhandler runs. - The stock UI never calls this function.
- The function needs at least two arguments and only reads the last two. Any extra arguments placed in front of them are ignored.
Errors
Error in function call 'VerticalScrollbarSetLineSize': Window %s does not existError in function call 'VerticalScrollbarSetLineSize': Window %s is not a VerticalScrollbar
Example
See VerticalScrollbarSetPageSize.
