API:WindowGetMovable
From RoR Wiki
UI Lua API · Window functions
Version: WAR 1.4.8
Returns whether a window can be dragged with the mouse.
movable = WindowGetMovable(windowName)
Arguments
- windowName
string– Name of the window.
Returns
- movable
boolean–trueif the window's movable flag is set.
Details
- This reads the flag set with WindowSetMovable. See that page for what the flag does.
- The stock UI also checks it before letting the player resize a window (see the example).
Errors
Error in function call 'WindowGetMovable': Window %s does not exist
Example
From easystem_windowutils/source/windowutils.lua (start of a resize):
if ( not WindowGetMovable(windowName) ) then
return
end
