Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:WindowGetAnchorCount

From RoR Wiki

UI Lua API · Window functions
Version: WAR 1.4.8

Returns how many anchors a window has.

count = WindowGetAnchorCount(windowName)

Arguments

windowName
string – Name of the window.

Returns

count
number – Number of anchors, 0 if the window has none.

Details

Errors

  • Error in function call 'WindowGetAnchorCount': Window %s does not exist

Example

From easystem_tooltips/source/tooltips.lua:

if WindowGetAnchorCount( windowToAnchorTo ) > 0
then
    local _, _, anchorTo, _, _ = WindowGetAnchor (windowToAnchorTo, 1)
end

See also