Quantcast

Added a new function to deal with movers fucking up file preview on gitlab

Darthpred [08-01-15 - 18:12]
Added a new function to deal with movers fucking up file preview on gitlab
Filename
ElvUI_SLE/core/toolkit.lua
diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua
index 78e3da5..f945537 100644
--- a/ElvUI_SLE/core/toolkit.lua
+++ b/ElvUI_SLE/core/toolkit.lua
@@ -225,4 +225,13 @@ function SLE:Reset(group)

 	end
 	E:UpdateAll()
-end
\ No newline at end of file
+end
+
+function SLE:SetMoverPosition(mover, anchor, parent, point, x, y)
+	if not _G[mover] then return end
+	local frame = _G[mover]
+
+	frame:ClearAllPoints()
+	frame:SetPoint(anchor, parent, point, x, y)
+	E:SaveMoverPosition(mover)
+end