api: add function to remove movables

This commit is contained in:
shagu
2018-01-07 14:02:56 +01:00
parent 97a11f994c
commit a2517790b9
+9
View File
@@ -444,6 +444,15 @@ function pfUI.api.UpdateMovable(frame)
end
-- [ Remove Movable ]
-- Removes a Frame from the movable list.
-- 'frame' [frame] the frame that should be removed.
function pfUI.api.RemoveMovable(frame)
local name = frame:GetName()
pfUI.movables[name] = nil
end
-- [ SetAutoPoint ]
-- Automatically places the frame according to screen position of the parent.
-- 'frame' [frame] the frame that should be moved.