Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:WindowGetResizing

From RoR Wiki

UI Lua API · Window functions
Version: WAR 1.4.8

Returns whether a window is currently being resized with the mouse.

resizing = WindowGetResizing(windowName)

Arguments

windowName
string – Name of the window.

Returns

resizing
boolean – true while a resize started with WindowSetResizing is active.

Details

  • WindowSetResizing with true and a valid point name starts the resize. With false, or with a point name the client does not know, this function returns false.
  • The stock UI never calls WindowGetResizing.

Errors

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

Example

A minimal example built from the signature above:

if WindowGetResizing( "MyWindow" ) then
    WindowSetResizing( "MyWindow", false, "", false )
end

See also