View Single Post
09-01-12, 05:50 AM   #6
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
This works for me:
Lua Code:
  1. local frame = CreateFrame("Frame", "rMM_DurabilityDragFrame", UIParent)
  2.   frame:SetSize(DurabilityFrame:GetWidth(),DurabilityFrame:GetHeight())
  3.   frame:SetPoint("CENTER",0,0)
  4.   --frame:SetPoint(DurabilityFrame:GetPoint())
  5.   --rCreateDragFrame(frame, dragFrameList, -2 , true) --frame, dragFrameList, inset, clamp
  6.   DurabilityFrame:SetParent(frame)
  7.   DurabilityFrame:SetAllPoints(frame)
  8.   hooksecurefunc(DurabilityFrame, "SetPoint", function(...)
  9.     DurabilityFrame:SetAllPoints(frame)
  10.   end)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote