move-unitframes: clamp movable frames to screen

This commit is contained in:
shagu
2025-03-19 17:12:08 +01:00
parent 291b258333
commit 10c4837937
+4
View File
@@ -15,6 +15,10 @@ module.enable = function(self)
local unlocker = CreateFrame("Frame", nil, UIParent)
unlocker:SetAllPoints(UIParent)
for _, frame in pairs(movables) do
_G[frame]:SetClampedToScreen(true)
end
unlocker.movable = nil
unlocker:SetScript("OnUpdate", function()
if IsShiftKeyDown() and IsControlKeyDown() then