Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:WindowGetMoving

From RoR Wiki

UI Lua API · Window functions
Version: WAR 1.4.8

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

moving = WindowGetMoving(windowName)

Arguments

windowName
string – Name of the window.

Returns

moving
boolean – true while the window is being moved.

Details

  • The flag is set when a move starts, either because the player pressed the left mouse button on a movable window (see WindowSetMovable) or through WindowSetMoving. It is cleared by WindowSetMoving(windowName, false) and when the window is hidden.
  • The stock UI never calls WindowGetMoving.

Errors

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

Example

A minimal example built from the signature above:

if WindowGetMoving( "MyWindow" ) then
    WindowSetMoving( "MyWindow", false )
end

See also