So, previous in 4.3 I was using a simple hooksecurefunc to "SetPoint" for the DurabilityFrame to allow me to set a custom point for the frame.
For some reason unknown to me this method no longer works and there has been 0 changes to the durability frame.
My Code:
Lua Code:
local function UpdatePoint()
DurabilityFrame:ClearAllPoints()
DurabilityFrame:SetPoint("TOPRIGHT",Minimap,"BOTTOMLEFT",-20,-20)
end
hooksecurefunc(DurabilityFrame,"SetPoint",function(self,_,parent)
if (parent == "MinimapCluster") or (parent == _G["MinimapCluster"]) then
UpdatePoint()
end
end)
tinsert(TUSUI.Updaters, UpdatePoint)
Can anyone point me as to what is preventing me from updating the point correctly?
Edit: Just to make this clear, the function UpdatePoint() is getting called and my global table insert is just to make sure it gets called again after my addon is loaded.