diff BuffFrame/BuffAnchors.lua @ 49:16465f3fd919

- remove UpdateAnchorAnchors and use hardlink for the one frame that this applied to
author Nenue
date Fri, 29 Apr 2016 10:50:27 -0400
parents 9837069e366a
children d7655c4e6e06
line wrap: on
line diff
--- a/BuffFrame/BuffAnchors.lua	Thu Apr 28 06:58:13 2016 -0400
+++ b/BuffFrame/BuffAnchors.lua	Fri Apr 29 10:50:27 2016 -0400
@@ -134,43 +134,6 @@
 end
 
 --- Handles placement of anchors embedded within anchors (consolidated buffs, maybe temp enchant)
-buffFrame.UpdateAnchorAnchors = function()
-  local displays = buffFrame.displays
-  local c = buffFrame.Conf
-  local guides = buffFrame.guides
-  local print = fprint()
-  for buttonName, d in pairs(displays) do
-    local c = displays[buttonName].conf
-    local frame =  buffFrame.anchors[buttonName]
-    local parent, child = c.Parent, c.Position
-
-    frame.parent = nil
-    if c[buttonName .. 'Parent'] and _G[c[buttonName .. 'Parent']..'Anchor'] then
-
-      local anchorAnchor = _G[c[buttonName .. 'Parent']..'Anchor']
-      local anchorTarget = guides[parent][child]
-      if anchorTarget then
-        print('link', buttonName, 'to', parent, child)
-        print(parent, child, displays[parent].guides[child])
-        local ac = displays[parent].conf
-        local anchorFrom, anchorTo = unpack(ac.Point)
-        frame:ClearAllPoints()
-        frame:SetPoint(anchorFrom, anchorTarget, anchorTo)
-        frame.parent = anchorTarget
-        anchorTarget.contains = frame
-        anchorAnchor.contains = frame
-        anchorAnchor.containPosition = child
-      else
-        frame.parent = anchorAnchor
-        anchorAnchor.contains = frame
-        anchorAnchor.containPosition = nil
-      end
-    else
-      frame.parent = nil
-    end
-
-  end
-end
 
 -- if facing key direction, anchor point [1] to parent's point [2]
 local childFacing = {