Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:ForceProcessAllWindowAnchors

From RoR Wiki

UI Lua API · Window functions
Version: WAR 1.4.8

Recalculates, right away, the position of every window whose anchors are waiting to be processed.

ForceProcessAllWindowAnchors()

Arguments

None.

Returns

Nothing.

Details

  • The client keeps a list of windows whose anchors still have to be processed. This function works through that list now: it sorts the waiting windows, places each one from its anchors, and repeats until the list is empty.
  • Use it when Lua code needs correct window positions straight after changing anchors, as the layout editor does after restoring default layouts.
  • Arguments are not checked; anything passed is ignored.

Errors

None.

Example

From default/easystem_layouteditor/source/layouteditor.lua:

        frame:RestoreDefaults()
    end
end

ForceProcessAllWindowAnchors()

for _, frame in pairs( LayoutEditor.framesList )
do

See also