View Single Post
07-25-14, 05:18 AM   #11
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 210
Originally Posted by Resike View Post
Could try this:

Lua Code:
  1. local a = {Boss1TargetFrame:GetPoint()}
  2. Boss1TargetFrame:ClearAllPoints()
  3. Boss1TargetFrame:SetPoint(a[1],a[2],a[3],a[4]-22, a[5]-70)
  4. Boss1TargetFrame:SetMovable(true)
  5. Boss1TargetFrame:SetUserPlaced(true)
  6. 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:
  1. hooksecurefunc(Boss1TargetFrame, "SetPoint", function(self, _, parent)
  2.         Boss1TargetFrame:SetMovable(true)
  3.         Boss1TargetFrame:ClearAllPoints()
  4.         Boss1TargetFrame:SetPoint("TOP", Minimap, "BOTTOM", 0, -70)
  5.         Boss1TargetFrame:SetUserPlaced(true)
  6.         Boss1TargetFrame:SetMovable(false)
  7.     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.
  Reply With Quote