Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:VerticalScrollbarGetScrollPosition

From RoR Wiki

UI Lua API · Scrollbar functions
Version: WAR 1.4.8

Returns the scroll position of a VerticalScrollbar.

position = VerticalScrollbarGetScrollPosition(scrollbarName)

Arguments

scrollbarName
string – Name of the VerticalScrollbar.

Returns

position
number – The current scroll position, between 0 and the maximum scroll position minus the page size.

Details

  • The stock UI never calls this function.

Errors

  • Error in function call 'VerticalScrollbarGetScrollPosition': Window %s does not exist
  • Error in function call 'VerticalScrollbarGetScrollPosition': Window %s is not a VerticalScrollbar

Example

A minimal example built from the signature:

local pos = VerticalScrollbarGetScrollPosition( "MyScrollbar" )

See also