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–truewhile a resize started with WindowSetResizing is active.
Details
- WindowSetResizing with
trueand a valid point name starts the resize. Withfalse, or with a point name the client does not know, this function returnsfalse. - 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
