Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:WindowForceProcessAnchors

From RoR Wiki

UI Lua API · Window functions
Version: WAR 1.4.8

Recalculates the position of a window and all of its descendants from their anchors right away.

WindowForceProcessAnchors(windowName)

Arguments

windowName
string – Name of the window.

Returns

Nothing.

Details

  • The client processes the anchors of the window first and then those of every child window, recursively.
  • Anchors set the position, and with two corner anchors also the size. See WindowAddAnchor for how one, two and more anchors are handled.
  • Use it when you need correct positions or sizes (for example from WindowGetScreenPosition) right after changing anchors or sizes.

Errors

  • Error in function call 'WindowForceProcessAnchors': Window %s does not exist
  • Error in function call 'WindowForceProcessAnchors': Window %s is currently locked and may not be modified from lua. ...
    This check never triggers in the current client. See WindowSetShowing.

Example

From ea_helptips/source/helptips.lua:

WindowForceProcessAnchors("EA_HelpTipsContainerWindow")

See also