mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
api: add option to move frames offscreen
This commit is contained in:
Vendored
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user