Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:HorizontalScrollWindowGetOffset

From RoR Wiki
Revision as of 19:45, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · ScrollWindow functions
Version: WAR 1.4.8

Returns the horizontal scroll offset of a HorizontalScrollWindow.

offset = HorizontalScrollWindowGetOffset(scrollWindowName)

Arguments

scrollWindowName
string – Name of the HorizontalScrollWindow.

Returns

offset
number – Distance in pixels from the left edge of the content to the left edge of the visible area.

Details

  • The stock UI never calls this function.

Errors

The error messages always use the name HorizontalScrollWindowSetOffset:

  • Error in function call 'HorizontalScrollWindowSetOffset': Window %s does not exist
  • Error in function call 'HorizontalScrollWindowSetOffset': Window %s is not a HorizontalScrollWindow

Example

A minimal example built from the signature:

local offset = HorizontalScrollWindowGetOffset( "MyHScrollWindow" )

See also