api: add option to move frames offscreen

This commit is contained in:
shagu
2017-01-24 22:22:55 +01:00
parent 389a7b6c9f
commit 096ee9d469
3 changed files with 6 additions and 1 deletions
Vendored
+4 -1
View File
@@ -95,7 +95,10 @@ end
-- 'frame' [frame] the frame that should be updated.
function pfUI.api:UpdateMovable(frame)
local name = frame:GetName()
frame:SetClampedToScreen(true)
if pfUI_config.global.offscreen == "0" then
frame:SetClampedToScreen(true)
end
if not pfUI.movables[name] then
pfUI.movables[name] = true