Frame:SetUserPlaced

From Warcraft Wiki
Jump to navigation Jump to search

Sets whether a frame has been moved by the user and will be saved in the layout cache.

Frame:SetUserPlaced(userPlaced)

Arguments

userPlaced
boolean - True if the frame has been moved by the user.

Details

  • There is usually no need to explicitly call this function; the flag is automatically set by Frame:StartMoving(), and when the frame's position is restored from the layout cache.
  • Positions of anonymous frames (frames without a name) will not be restored.
  • Only frames created prior to the completion of the initial loading process (i.e. before PLAYER_LOGIN) will have their position restored.

See also