From a2517790b963550e9dc6fb31bc94445faf55f7d8 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 7 Jan 2018 14:02:56 +0100 Subject: [PATCH] api: add function to remove movables --- api/api.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/api.lua b/api/api.lua index f49b6141..c71c33da 100644 --- a/api/api.lua +++ b/api/api.lua @@ -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.