Originally Posted by Resike
Could try this:
Lua Code:
local a = {Boss1TargetFrame:GetPoint()} Boss1TargetFrame:ClearAllPoints() Boss1TargetFrame:SetPoint(a[1],a[2],a[3],a[4]-22, a[5]-70) Boss1TargetFrame:SetMovable(true) Boss1TargetFrame:SetUserPlaced(true) Boss1TargetFrame:SetMovable(false)
I think this would work with the TargetFrame or pretty much any protected frames too.
At least i'm using this in:
http://www.wowinterface.com/forums/s...ad.php?t=49385
However i'm not finished with the "in combat" testing yet.
|
This doesn't work - doesn't produce any visible results or errors when I used as is but when I tried it like this:
Lua Code:
hooksecurefunc(Boss1TargetFrame, "SetPoint", function(self, _, parent)
Boss1TargetFrame:SetMovable(true)
Boss1TargetFrame:ClearAllPoints()
Boss1TargetFrame:SetPoint("TOP", Minimap, "BOTTOM", 0, -70)
Boss1TargetFrame:SetUserPlaced(true)
Boss1TargetFrame:SetMovable(false)
end)
I get this:
Code:
\Map.lua:342: Frame Boss1TargetFrame is not movable or resizable
So i assume SetMoveable() is not accessible in this instance.