m
Move page script moved page API Frame SetUserPlaced to WoW:API Frame SetUserPlaced without leaving a redirect
m (→Details: Works with named frames created by CreateFrame) |
m (Move page script moved page API Frame SetUserPlaced to WoW:API Frame SetUserPlaced without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
Sets whether a frame has been moved by the user (and will thus be saved in the layout cache). | |||
frame:SetUserPlaced(isUserPlaced); | |||
== Arguments == | |||
;isUserPlaced : Boolean - true if the frame has been moved by the user, false if not | ;isUserPlaced : Boolean - true if the frame has been moved by the user, false if not | ||
== | ==Notes== | ||
* '''There is usually no need to explicitly call this function'''; the flag is automatically set by {{api|t=w|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 will have their position restored. | |||
==Also See== | ==Also See== | ||
* | * {{api|t=w|Frame:IsUserPlaced}}() | ||